aboutsummaryrefslogtreecommitdiffstats
path: root/src/Test.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Test.java')
-rw-r--r--src/Test.java5
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);