Revision dcb93971 lib/cli.py
b/lib/cli.py | ||
---|---|---|
39 | 39 |
__all__ = ["DEBUG_OPT", "NOHDR_OPT", "SEP_OPT", "GenericMain", "SubmitOpCode", |
40 | 40 |
"cli_option", |
41 | 41 |
"ARGS_NONE", "ARGS_FIXED", "ARGS_ATLEAST", "ARGS_ANY", "ARGS_ONE", |
42 |
"USEUNITS_OPT"] |
|
42 |
"USEUNITS_OPT", "FIELDS_OPT"]
|
|
43 | 43 |
|
44 | 44 |
DEBUG_OPT = make_option("-d", "--debug", default=False, |
45 | 45 |
action="store_true", |
... | ... | |
58 | 58 |
action="store_true", dest="human_readable", |
59 | 59 |
help="Print sizes in human readable format") |
60 | 60 |
|
61 |
FIELDS_OPT = make_option("-o", "--output", dest="output", action="store", |
|
62 |
type="string", help="Select output fields", |
|
63 |
metavar="FIELDS") |
|
64 |
|
|
61 | 65 |
_LOCK_OPT = make_option("--lock-retries", default=None, |
62 | 66 |
type="int", help=SUPPRESS_HELP) |
63 | 67 |
|
Also available in: Unified diff