Revision a8469393
ID | a84693938be8260657ef54adc9fbb1376a3ed68d |
Parent | 2d8ed1fe |
Child | 16ad1a83 |
Add two new options types for CLI usage
For the new 2.0-style command line options, we need to parse strings of
the type:
ident:key=val[,...]
and
key=val[,...]
This patch adds two new option builders for these two, which return
(ident, {key=val,}) and {key=val,} for the above two formats. It also
handles specially constructs of type “key” (val is set to True) and
“no_key” (val is set to False, and the ‘no_’ prefix is stripped).
Reviewed-by: imsnah
Files
- added
- modified
- copied
- renamed
- deleted