diff options
author | Pol Van Aubel <dev@polvanaubel.com> | 2018-05-07 22:35:32 +0200 |
---|---|---|
committer | Pol Van Aubel <dev@polvanaubel.com> | 2018-05-07 22:35:32 +0200 |
commit | f1b481dcc72cc36026dc1863c01416026f1423b1 (patch) | |
tree | 78f2f73b503eabfd0bbef6bb4f81f97ad3ef2ac7 /qutebrowser/qutebrowser.py | |
parent | 431a52da6c72d1a106f7cb6f92c74a0b816f3094 (diff) | |
download | qutebrowser-f1b481dcc72cc36026dc1863c01416026f1423b1.tar.gz qutebrowser-f1b481dcc72cc36026dc1863c01416026f1423b1.zip |
Short options for --debug and --debug-flags
Diffstat (limited to 'qutebrowser/qutebrowser.py')
-rw-r--r-- | qutebrowser/qutebrowser.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qutebrowser/qutebrowser.py b/qutebrowser/qutebrowser.py index 5b5b86eae..292c80c6a 100644 --- a/qutebrowser/qutebrowser.py +++ b/qutebrowser/qutebrowser.py @@ -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 |