From: Doni Pracner Date: Fri, 7 Feb 2014 20:24:31 +0000 (+0100) Subject: mjc2wsl - introduced the --version options and added to help X-Git-Tag: v0.1.5~16 X-Git-Url: https://svarog.pmf.uns.ac.rs/gitweb/?a=commitdiff_plain;h=07310ad61164d50613d8c7855d5d8adddd7bbfb6;p=mjc2wsl.git mjc2wsl - introduced the --version options and added to help --- diff --git a/src/mjc2wsl.java b/src/mjc2wsl.java index 9eff3ad..67586be 100644 --- a/src/mjc2wsl.java +++ b/src/mjc2wsl.java @@ -671,9 +671,10 @@ public class mjc2wsl{ } public void printHelpHelp() { - System.out.println("Help options"); + System.out.println("Help and info options"); System.out.println(" -h basic help"); System.out.println(" --help print more detailed help"); + System.out.println(" --version or -version print version and exit"); } public void printUsage(){ @@ -704,6 +705,10 @@ public class mjc2wsl{ } else if (args[i].compareTo("--help") == 0) { printLongHelp(); return; + } else if (args[i].compareTo("--version") == 0 + || args[i].compareTo("-version") == 0) { + printVersion(); + return; } else if (args[i].compareTo("-o") == 0 || args[i].startsWith("--oc")) { if (args[i].length() == 2)