From 07310ad61164d50613d8c7855d5d8adddd7bbfb6 Mon Sep 17 00:00:00 2001 From: Doni Pracner Date: Fri, 7 Feb 2014 21:24:31 +0100 Subject: [PATCH] mjc2wsl - introduced the --version options and added to help --- src/mjc2wsl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 2.25.1