From 7a60659eaeb771f7baa7f50e37695b3f9787f194 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 1 Aug 2013 12:17:54 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser/ArgParser.java | 52 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 48 insertions(+), 4 deletions(-) (limited to 'src') 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); } /** @@ -331,6 +343,16 @@ public class ArgParser { super(alternatives, standard, argument); } + /** + * Constructor + * + * @param alternatives Alterative option names + * @param argument Argument name + */ + public Argumented(final String[] alternatives, final String argument) + { super(alternatives, 0, argument); + } + /** * Constructor * @@ -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); } /** @@ -402,6 +436,16 @@ public class ArgParser { super(argument, standard, alternatives); } + /** + * Constructor + * + * @param alternatives Alterative option names + * @param argument Argument name + */ + public Variadic(final String[] alternatives, final String argument) + { super(alternatives, argument); + } + /** * Constructor * -- cgit v1.2.3-70-g09d2