Allow wild cards in the File argument
Command line argument parser library for Java
Brought to you by:
obdobion
This would only be allowed if the argument was also specified as "--multiple". The argument would actually load the variable (or value for the argument) as a list (or array) of the result of the wild card processing. Wild cards would cause a parse exception if --multiple is not specified or violates its parameters. For instance, if "-m 1 2" is defined and the wild card results in 0 or more than 2 files to be resolved an exception would be thrown.
The implementation was with a new argument type of "WildFile". Everything else works as it always has. --multiple also can optionally be specified on wildfile however, wildfile always stores its results in an array (or list). Each instance of a wildfile value can result in 0 or more files added to the result. All results from all wildfile occurrences are added to the same output array.
release 2.2.37
Last edit: Chris DeGreef 2013-12-11