diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-08-26 13:21:30 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-08-26 13:21:30 +0200 |
commit | e73228aaafce7901a6a39cf4ce6dbfdbf8f0a6b2 (patch) | |
tree | e953538a8ff426089f2955918824509d558fe84f /src/Test.java | |
parent | issue 2, info manual (diff) | |
download | argparser-e73228aaafce7901a6a39cf4ce6dbfdbf8f0a6b2.tar.gz argparser-e73228aaafce7901a6a39cf4ce6dbfdbf8f0a6b2.tar.bz2 argparser-e73228aaafce7901a6a39cf4ce6dbfdbf8f0a6b2.tar.xz |
update test
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/Test.java')
-rw-r--r-- | src/Test.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Test.java b/src/Test.java index 27473ab..a06a0fe 100644 --- a/src/Test.java +++ b/src/Test.java @@ -46,6 +46,7 @@ public class Test parser.add(new ArgParser.Argumentless(0, "++hidden")); parser.add(new ArgParser.Argumented("LINE", 0, "-l", "--line"), "Prints the choosen line"); + parser.add(new ArgParser.Optargumented("LINE", 0, "-L", "--Line"), "Prints the choosen line"); parser.add(new ArgParser.Variadic("LINE", 0, "--l", "--lines"), "Prints the choosen lines"); parser.parse(args); @@ -63,6 +64,10 @@ public class Test { for (String line : parser.opts.get("--line")) System.out.println(line); } + if (parser.opts.get("-L") != null) + { for (String line : parser.opts.get("--Line")) + System.out.println(line); + } if (parser.opts.get("--lines") != null) { for (String line : parser.opts.get("--l")) System.out.println(line); |