Menu

#2 Allow wild cards in the File argument

closed
None
5
2013-12-11
2013-12-05
No

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.

Discussion

  • Chris DeGreef

    Chris DeGreef - 2013-12-09

    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.

     
  • Chris DeGreef

    Chris DeGreef - 2013-12-11
    • status: open --> closed

    release 2.2.37

     

    Last edit: Chris DeGreef 2013-12-11

Log in to post a comment.