Parse comma-separated lists of values in all parameter types. This can be enabled for a specific parameter by setting the "csv" option to True.

Remove "List" parameter type and replace all occurences of it with appropriate
multi-valued parameter ("Str" in most cases) with csv enabled.

Add new parameter type "Any", capable of holding values of any type. This is
needed by the "batch" command, as "Str" is not suitable type for the "methods"
parameter.

ticket 2007
This commit is contained in:
Jan Cholasta
2011-11-21 10:50:27 -05:00
committed by Martin Kosek
parent 2ac9d4816a
commit 135ccf89de
18 changed files with 540 additions and 542 deletions

5
TODO
View File

@@ -63,11 +63,6 @@ Command Line interface
own replacement for optparse. The isn't way to make optparse deal with the
global options the way Jason would like, so that's another motivation.
* All "comma-separated list of..." parameters should really be changed to
multivalue and have a flag that tells the CLI whether a multivalue should
be parsed as comma-separated. The List type currently satisfy this, but it
would be nice to have a comma-separated multivalue of any type.
* Add a File param type so an argument may be read from a file. This is
needed for cert-request to pass along the CSR.