Short options for --debug and --debug-flags
This commit is contained in:
parent
431a52da6c
commit
f1b481dcc7
@ -72,7 +72,7 @@ show it.
|
||||
*--loglines* 'LOGLINES'::
|
||||
How many lines of the debug log to keep in RAM (-1: unlimited).
|
||||
|
||||
*--debug*::
|
||||
*-d*, *--debug*::
|
||||
Turn on debugging options.
|
||||
|
||||
*--json-logging*::
|
||||
@ -99,7 +99,7 @@ show it.
|
||||
*--qt-flag* 'QT_FLAG'::
|
||||
Pass an argument to Qt as flag.
|
||||
|
||||
*--debug-flag* 'DEBUG_FLAGS'::
|
||||
*-D*, *--debug-flag* 'DEBUG_FLAGS'::
|
||||
Pass name of debugging feature to be turned on.
|
||||
// QUTE_OPTIONS_END
|
||||
|
||||
|
@ -103,7 +103,7 @@ def get_argparser():
|
||||
help="How many lines of the debug log to keep in RAM "
|
||||
"(-1: unlimited).",
|
||||
default=2000, type=int)
|
||||
debug.add_argument('--debug', help="Turn on debugging options.",
|
||||
debug.add_argument('-d', '--debug', help="Turn on debugging options.",
|
||||
action='store_true')
|
||||
debug.add_argument('--json-logging', action='store_true', help="Output log"
|
||||
" lines in JSON format (one object per line).")
|
||||
@ -124,9 +124,9 @@ def get_argparser():
|
||||
action='append')
|
||||
debug.add_argument('--qt-flag', help="Pass an argument to Qt as flag.",
|
||||
nargs=1, action='append')
|
||||
debug.add_argument('--debug-flag', type=debug_flag_error, default=[],
|
||||
help="Pass name of debugging feature to be turned on.",
|
||||
action='append', dest='debug_flags')
|
||||
debug.add_argument('-D', '--debug-flag', type=debug_flag_error,
|
||||
default=[], help="Pass name of debugging feature to be"
|
||||
" turned on.", action='append', dest='debug_flags')
|
||||
parser.add_argument('command', nargs='*', help="Commands to execute on "
|
||||
"startup.", metavar=':command')
|
||||
# URLs will actually be in command
|
||||
|
Loading…
Reference in New Issue
Block a user