summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-12-27Allow empty string as parameterjeremysolarz
2016-12-27Add test cases for empty string / just double quotes 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 commented-out codeMykhailo Kovalskyi
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-10-08Fix code style issuesMykhailo Kovalskyi
- Wildcard type argument '?' explicitly extends 'java.lang.Object'. - Modifier 'public static final' is redundant for interface fields. - Unnecessary semicolon.
2016-09-26Delete commented-out codeSimon Legner
2016-09-26Merge pull request #285 from simon04/refactor-conversionCedric Beust
Refactor/streamline value conversion
2016-09-22Merge pull request #289 from garydgregory/CharArrayConverterCedric Beust
Adds class CharArrayConverter that implements IStringConverter<char[]>
2016-09-22Add unit test CharArrayConverterTest.Gary Gregory
2016-09-22Add unit test for InetAddressConverter.Gary Gregory
2016-09-21Adds a class InetAddressConverter that implementsGary Gregory
IStringConverter<InetAddress>
2016-09-21Adds class CharArrayConverter that implements IStringConverter<char[]>Gary Gregory
2016-09-19Skip Path converter when class is not availableBen Gruver
This is a workaround to allow jcommander to run on Android, which doesn't have the java.nio.file.Path class.
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-05test for MissingCommandException.getUnknownCommandAntoine Reilles
Make sure we pass the command that was not regognized to the user.
2016-08-05Do not forget to update constructor call site tooAntoine Reilles
2016-08-05Use the `this` constructor as suggested by @cbeustAntoine Reilles
This makes constructors more maintainable: one constructor does the processing.
2016-08-05reorder constructor argumentsAntoine Reilles
keep parameters in the same order across constructors, to avoid confusion
2016-08-05add commentmmzen
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-03-21build: Add support for building jcommander within the AOSP (host only).Igor Murashkin
Bug: 27552463 Change-Id: I71b4f3b26b9307b36444cecc75d67de03be9cb23
2016-02-28Merge shuwada's commit to fix #95.Cedric Beust
Fix #95. https://github.com/shuwada/jcommander/commit/69acd2ec2d01afb7f69a83da54012374c6f126bf
2016-02-15Merge pull request #156 from tzellman/masterCedric Beust
Support ability to disable ampersat (@) parsing
2016-02-12Updated support for disabling the @/ampersand/at expansionTom Zellman
- renamed expandAmpersat to expandAtSign - added tests for both enabled/disabled scenarios
2016-01-25Merge pull request #212 from cheister/masterCedric Beust
fix NPE if you attempt to call JCommander#usage when you have not specified the @Parameters annotation
2016-01-21Wrap usage for commands and main parametersEvan Ward
When commands or main parameters have long descriptions word-wrap the descriptions. Also made some small changes to the indentation algorithm so the number of columns indented is always even.
2016-01-07Fix build.Cedric Beust
2015-12-28Simple example for use in the documentationJoseph B. Ottinger
2015-12-01fixed unused lineChris Ruffalo
2015-12-01added ability to read parameters from interfacesChris Ruffalo
class hierarchy is now described recursively and scanned in one pass for parameterization details
2015-08-23Test fix.Cedric Beust
2015-08-09Refuse to write to final fields.Simon Richard Clarkstone
The Java compiler will inline (some types of) final fields, so writing to them via reflection will not have the desired effect. This commit makes JCommander throw an exception instead. Original bug report at https://groups.google.com/forum/#!topic/jcommander/RwL1GuPg7L8
2015-08-09Tweaked tests to work on Java 7 and 8.Simon Richard Clarkstone
2015-07-09Merge pull request #236 from Antag99/fix-accessibilityCedric Beust
Fix issue where JCommander could not access private fields/methods
2015-07-07Fix description line wrappingEvan Ward
The first word of the description was not counted towards the line length so a long first word would result in a very long line written to the terminal. Added proper line length accounting and a unit test.
2015-07-06Add unit tests for inaccessible fields/methods/constructorsAnton Gustafsson
2015-07-06Fix "access" unit testAnton Gustafsson
2015-07-05Fix issue where JCommander could not access private fields/methodsAnton Gustafsson
2015-05-17Merge pull request #179 from gbalats/masterCedric Beust
Updated JCommander.java so that it prioritizes registered converters for enums over generic enum conversion.