From 85898c5a6bbc1db1113da2ddd9acb4db09ba3a46 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 27 Jun 2013 11:56:15 +0200 Subject: add options to java test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/Test.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Test.java') diff --git a/src/Test.java b/src/Test.java index c593b4e..e6c5a18 100644 --- a/src/Test.java +++ b/src/Test.java @@ -40,6 +40,13 @@ public class Test "You should have received a copy of the GNU General Public License\n" + "along with this library. If not, see .", null, true); + parser.add(new ArgParser.Argumentless(0, "-h", "-?", "--help"), "Prints this help message\n(and exits)"); + parser.add(new ArgParser.Argumentless(0, "--hello"), "Prints the text: hello world"); + parser.add(new ArgParser.Argumentless(0, "++hidden")); + + parser.add(new ArgParser.Argumented("LINE", 0, "-l", "--line"), "Prints the choosen line"); + parser.add(new ArgParser.Variadic("LINE", 0, "--l", "--lines"), "Prints the choosen lines"); + parser.parse(args); parser.supportAlternatives(); -- cgit v1.2.3-70-g09d2