package com.vdshb.commands;

public class Exit {

    public static void exit(String[] args) {
        System.exit(0);
    }
}

@@ -22,16 +22,53 @@
 mands;%0A%0A
+import static java.lang.System.out;%0A%0A
 public c
@@ -125,16 +125,430 @@
 args) %7B%0A
+        if (args.length %3E 1) %7B%0A            out.println(%22Incorrect command parameters.%22);%0A            return;%0A        %7D%0A        if (args.length == 1) %7B%0A            try %7B%0A                int exitCode = Integer.valueOf(args%5B0%5D);%0A                System.exit(exitCode);%0A            %7D catch (NumberFormatException e) %7B%0A                out.println(%22Incorrect exit code.%22);%0A                return;%0A            %7D%0A        %7D%0A
         

Improve exit