package kalang.lang;

/**
 *
 * @author Kason Yang
 */
public abstract class Script {

    public final static int SUCCESS = 0;

    protected abstract void execute();

    public int run() {
        execute();
        return SUCCESS;
    }

}

@@ -15,16 +15,52 @@
 .lang;%0A%0A
+import kalang.annotation.Nullable;%0A%0A
 /**%0A *%0A 
@@ -158,16 +158,65 @@
 S = 0;%0A%0A
+    private String%5B%5D arguments = new String%5B0%5D;%0A%0A
     prot
@@ -289,16 +289,16 @@
 cute();%0A
-
         
@@ -320,10 +320,251 @@
 %0A    %7D%0A%0A
+    public int run(@Nullable String%5B%5D arguments) %7B%0A        if (arguments != null) %7B%0A            this.arguments = arguments;%0A        %7D%0A        return run();%0A    %7D%0A    %0A    protected String%5B%5D arguments()%7B%0A        return this.arguments;%0A    %7D%0A%0A
 %7D%0A

support arguments