diff --git a/scripts/generate_manpage.py b/scripts/generate_manpage.py index 17187d844..5599c69e6 100644 --- a/scripts/generate_manpage.py +++ b/scripts/generate_manpage.py @@ -166,13 +166,17 @@ def generate_commands(): print("== Commands") normal_cmds = [] hidden_cmds = [] + debug_cmds = [] for name, cmd in cmdutils.cmd_dict.items(): if cmd.hide: hidden_cmds.append((name, cmd)) + elif cmd.debug: + debug_cmds.append((name, cmd)) else: normal_cmds.append((name, cmd)) normal_cmds.sort() hidden_cmds.sort() + debug_cmds.sort() print() print("=== Normal commands") print(".Quick reference") @@ -185,6 +189,15 @@ def generate_commands(): print(get_command_quickref(hidden_cmds)) for name, cmd in hidden_cmds: print(get_command_doc(name, cmd)) + print() + print("=== Debugging commands") + print("These commands are mainly intended for debugging. They are hidden " + "if qutebrowser was started without the `--debug`-flag.") + print() + print(".Quick reference") + print(get_command_quickref(debug_cmds)) + for name, cmd in debug_cmds: + print(get_command_doc(name, cmd)) def generate_settings():