Short options for --debug and --debug-flags

This commit is contained in:
Pol Van Aubel 2018-05-07 22:35:32 +02:00
parent 431a52da6c
commit f1b481dcc7
2 changed files with 6 additions and 6 deletions

View File

@ -72,7 +72,7 @@ show it.
*--loglines* 'LOGLINES':: *--loglines* 'LOGLINES'::
How many lines of the debug log to keep in RAM (-1: unlimited). How many lines of the debug log to keep in RAM (-1: unlimited).
*--debug*:: *-d*, *--debug*::
Turn on debugging options. Turn on debugging options.
*--json-logging*:: *--json-logging*::
@ -99,7 +99,7 @@ show it.
*--qt-flag* 'QT_FLAG':: *--qt-flag* 'QT_FLAG'::
Pass an argument to Qt as 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. Pass name of debugging feature to be turned on.
// QUTE_OPTIONS_END // QUTE_OPTIONS_END

View File

@ -103,7 +103,7 @@ def get_argparser():
help="How many lines of the debug log to keep in RAM " help="How many lines of the debug log to keep in RAM "
"(-1: unlimited).", "(-1: unlimited).",
default=2000, type=int) 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') action='store_true')
debug.add_argument('--json-logging', action='store_true', help="Output log" debug.add_argument('--json-logging', action='store_true', help="Output log"
" lines in JSON format (one object per line).") " lines in JSON format (one object per line).")
@ -124,9 +124,9 @@ def get_argparser():
action='append') action='append')
debug.add_argument('--qt-flag', help="Pass an argument to Qt as flag.", debug.add_argument('--qt-flag', help="Pass an argument to Qt as flag.",
nargs=1, action='append') nargs=1, action='append')
debug.add_argument('--debug-flag', type=debug_flag_error, default=[], debug.add_argument('-D', '--debug-flag', type=debug_flag_error,
help="Pass name of debugging feature to be turned on.", default=[], help="Pass name of debugging feature to be"
action='append', dest='debug_flags') " turned on.", action='append', dest='debug_flags')
parser.add_argument('command', nargs='*', help="Commands to execute on " parser.add_argument('command', nargs='*', help="Commands to execute on "
"startup.", metavar=':command') "startup.", metavar=':command')
# URLs will actually be in command # URLs will actually be in command