aboutsummaryrefslogtreecommitdiffstats
path: root/src/Test.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Test.java')
-rw-r--r--src/Test.java7
1 files changed, 7 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.", 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();