diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-08-01 12:17:54 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-08-01 12:17:54 +0200 |
commit | 7a60659eaeb771f7baa7f50e37695b3f9787f194 (patch) | |
tree | a20e88f4989227717427481fc65a6e1275eea9d1 | |
parent | doc the java part that is similar to in python (diff) | |
download | argparser-7a60659eaeb771f7baa7f50e37695b3f9787f194.tar.gz argparser-7a60659eaeb771f7baa7f50e37695b3f9787f194.tar.bz2 argparser-7a60659eaeb771f7baa7f50e37695b3f9787f194.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/argparser/ArgParser.java | 52 |
1 files changed, 48 insertions, 4 deletions
diff --git a/src/argparser/ArgParser.java b/src/argparser/ArgParser.java index 1c1f28e..767b01d 100644 --- a/src/argparser/ArgParser.java +++ b/src/argparser/ArgParser.java @@ -302,11 +302,23 @@ public class ArgParser /** * Constructor * + * @param argument Argument name + * @param alternatives Alterative option names + * @param standard Standard option index + */ + public Argumented(final String argument, final String[] alternatives, final int standard) + { super(alternatives, standard, argument); + } + + /** + * Constructor + * + * @param standard Standard option index * @param alternatives Alterative option names * @param argument Argument name */ - public Argumented(final String[] alternatives, final String argument) - { super(alternatives, 0, argument); + public Argumented(final int standard, final String[] alternatives, final String argument) + { super(alternatives, standard, argument); } /** @@ -334,6 +346,16 @@ public class ArgParser /** * Constructor * + * @param alternatives Alterative option names + * @param argument Argument name + */ + public Argumented(final String[] alternatives, final String argument) + { super(alternatives, 0, argument); + } + + /** + * Constructor + * * @param argument Argument name * @param alternatives Alterative option names */ @@ -373,11 +395,23 @@ public class ArgParser /** * Constructor * + * @param argument Argument name + * @param alternatives Alterative option names + * @param standard Standard option index + */ + public Variadic(final String argument, final String[] alternatives, final int standard) + { super(alternatives, argument, standard); + } + + /** + * Constructor + * + * @param standard Standard option index * @param alternatives Alterative option names * @param argument Argument name */ - public Variadic(final String[] alternatives, final String argument) - { super(alternatives, argument); + public Variadic(final int standard, final String[] alternatives, final String argument) + { super(standard, argument, alternatives); } /** @@ -405,6 +439,16 @@ public class ArgParser /** * Constructor * + * @param alternatives Alterative option names + * @param argument Argument name + */ + public Variadic(final String[] alternatives, final String argument) + { super(alternatives, argument); + } + + /** + * Constructor + * * @param argument Argument name * @param alternatives Alterative option names */ |