summaryrefslogtreecommitdiff
path: root/src/main/java/com/beust/jcommander/JCommander.java
AgeCommit message (Collapse)Author
2017-04-25Add support for inverted booleans.Cedric Beust
2017-04-08Make the builder visible.Cedric Beust
2017-04-07Deprecate a constructor overload.Cedric Beust
2017-04-07GH-337: Added the JCommander instance to ParameterException so you can call ↵Cedric Beust
usage() on it. Fixes https://github.com/cbeust/jcommander/issues/337
2017-04-05Fix for issue: #3437acd22f0bcd3ac948246
ParameterException is not thrown when a parameter with variable arity has no value
2017-03-25multiple validationPierre Lindenbaum
2017-03-23Better error message.Cedric Beust
Fixes https://github.com/cbeust/jcommander/issues/336.
2017-03-09Never prompt for password if it was passed as an argument (fixes #195)Lukáš Petrovický
Took the liberty of also fixing one pre-existing test related to passwords that was marked as disabled until now.
2017-03-05Merge remote-tracking branch 'upstream/master' into ↵jeremysolarz
dash-dash-dash-dash-dash-dash
2017-03-05Merge branch 'master' of github.com:cbeust/jcommanderCedric Beust
2017-03-05Compile JCommander with 1.7.Cedric Beust
TestNG depends on it, so that's necessary.
2017-03-04Add method to get program namejeremysolarz
2017-03-04Merge with upstream/masterjeremysolarz
2017-02-16Fix the missing commit (?).Cedric Beust
2017-02-12NPE.Cedric Beust
2017-02-12Add order to @Parameter().Cedric Beust
2017-02-12Fix the builder.Cedric Beust
2017-02-12Merge branch 'master' of github.com:cbeust/jcommanderCedric Beust
2017-02-12First pass at @SubParameter.Cedric Beust
2017-02-03Remove finals.Cedric Beust
2017-02-03Introduce builder class.Cedric Beust
2017-01-26Don’t show [options] in usage() if there are no options.Cedric Beust
2017-01-25Fix GITHUB-322.Cedric Beust
https://github.com/cbeust/jcommander/issues/322
2017-01-24Rename fields..Cedric Beust
2017-01-24Remove the need for option prefixes.Cedric Beust
2017-01-24Fix '--' handlingMarat Radchenko
1. Do not fail with ArrayIndexOutOfBoundsException if '--' is the last arg 2. Do not swallow '--' that occur after '--'. This can be needed if app wants to operate on a file named '--', for example + tests for both cases Signed-off-by: Marat Radchenko <marat@slonopotamus.org>
2017-01-15Add correct parameter name to standard converters (e.g. String to Integer)jeremysolarz
2017-01-13Make getParameters() work againSimon Legner
Regression from c4532fde79808d231e7b8c6fe330655c7d91638f. `createDescriptions` needs to be called.
2017-01-10Use commandDescription if no commandDescriptionKeyAntoine Reilles
When obtaining the description of a command, if a resourcebundle is configured, but commandDescriptionKey is missing, use the provided commandDescription instead of failing with MissingResourceException.
2016-12-28Merge branch 'master' of https://github.com/jeremysolarz/jcommander into ↵jeremysolarz
issue-306-empty-string-as-parameter * 'master' of https://github.com/jeremysolarz/jcommander: Add changelog entry for #305 Do not display default value for help parameter in usage Finalize test case for omitting of default value display in usage output # Conflicts: # CHANGELOG.md # src/main/java/com/beust/jcommander/JCommander.java
2016-12-27Do not display default value for help parameter in usagejeremysolarz
2016-12-27Allow empty string as parameterjeremysolarz
2016-12-16Fix param name error in validatorjeremysolarz
When IValueValidator is called it always get's the first name as defined in @Parameter. JCommander should call the validator with the parameter given on the command line
2016-11-02Fix indentation for nested sub-commands.Matt Bray
2016-10-08Remove verbose code constructsMykhailo Kovalskyi
- Redundant array creation for calling varargs method.
2016-10-08Apply Java language level migration aidsMykhailo Kovalskyi
- 'for' loop replaceable with 'foreach'. - Identical 'catch' branches in 'try' statement. - Explicit type argument can be replaced with <>.
2016-09-26Delete commented-out codeSimon Legner
2016-09-26Merge pull request #285 from simon04/refactor-conversionCedric Beust
Refactor/streamline value conversion
2016-09-12Refactor/streamline value conversionSimon Legner
In addition, this fixes #162, #266.
2016-09-12Allow to specify the @file charsetSimon Legner
2016-09-12Thread-safe and non-shared converter factoriesSimon Legner
Makes converter factories thread-safe and non-shared across commander instances. Fixes #278
2016-09-05Merge pull request #280 from simon04/share-optionsCedric Beust
Share options with subcommands
2016-09-05Share options with sub commandsSimon Legner
2016-09-04When using `parseWithoutValidation()`, JCommander uses 'parse()' on child ↵Simon Legner
commanders Fixes #267.
2016-09-01Add IStringConverterInstanceFactorySimon Legner
This factory returns instances of string converters. See #196.
2016-08-05Do not forget to update constructor call site tooAntoine Reilles
2016-08-05Allow user to retrieve unknown commandAntoine Reilles
When an unknown command is parsed, the MissingCommandException is raised. However, there is no way for the library user to access the erroneous command (except parsing either the arguments or the error message). Such access is helpfull, for instance to provide a better error message, hinting to close commands as git does (try "git pulll").
2016-04-14Streamline the getDescriptionFor methodPortnoy
2016-04-07Usage no longer has a trailing space at the end of the line.Carl-Frederik Hallberg
2016-02-28Merge shuwada's commit to fix #95.Cedric Beust
Fix #95. https://github.com/shuwada/jcommander/commit/69acd2ec2d01afb7f69a83da54012374c6f126bf