gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
mjc2wsl extract the print version function
authorDoni Pracner <quinnuendo@gmail.com>
Fri, 7 Feb 2014 20:12:13 +0000 (21:12 +0100)
committerDoni Pracner <quinnuendo@gmail.com>
Fri, 7 Feb 2014 20:12:13 +0000 (21:12 +0100)
src/mjc2wsl.java

index 133ca3da99eecb12fa8d2f8aa1a8e2c6f716ef5c..bed0f378d498bb9963a4b5b72664ef4d97cd1b97 100644 (file)
@@ -635,8 +635,7 @@ public class mjc2wsl{
        }
        
        public void printHelp() {
-               System.out.println("MicroJava bytecode to WSL converter. v " + versionN
-                               + ", by Doni Pracner");
+               printVersion();
                System.out.println("usage:\n\t mjc2wsl {options} filename [outfile]");
                System.out.println("basic options:\n\t--screen print output to screen");
                System.out.println("\t-o --oc[+-] include original code in comments");
@@ -648,8 +647,7 @@ public class mjc2wsl{
        }
        
        public void printLongHelp() {
-               System.out.println("MicroJava bytecode to WSL converter. v " + versionN
-                               + ", by Doni Pracner");
+               printVersion();
                System.out.println("usage:\n\t mjc2wsl {options} filename [outfile]");
                System.out.println("Output options:");
                System.out.println("  --screen print output to screen");
@@ -670,6 +668,11 @@ public class mjc2wsl{
                System.out.println("  --help print more detailed help; this screen");
        }
        
+       public void printVersion() {
+               System.out.println("MicroJava bytecode to WSL converter. v " + versionN
+                               + ", by Doni Pracner");
+       }
+       
        public String makeDefaultOutName(String inname){
                String rez = inname;
                if (inname.endsWith(".obj"))
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner