From 46ec9879e61dbfaf3afcd5059615704860ee19c9 Mon Sep 17 00:00:00 2001 From: dece Date: Fri, 28 May 2021 13:26:41 +0200 Subject: [PATCH] help: add "help" command in case of --- bebop/browser/browser.py | 4 +++- bebop/help.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bebop/browser/browser.py b/bebop/browser/browser.py index 149bbd1..808ee7a 100644 --- a/bebop/browser/browser.py +++ b/bebop/browser/browser.py @@ -306,7 +306,9 @@ class Browser: command = words[0] if num_words == 1: - if command in ("q", "quit"): + if command == "help": + self.open_help() + elif command in ("q", "quit"): self.running = False elif command in ("h", "home"): self.open_home() diff --git a/bebop/help.py b/bebop/help.py index ade488e..6f709a2 100644 --- a/bebop/help.py +++ b/bebop/help.py @@ -43,6 +43,7 @@ Keybinds using the SHIFT key are written uppercase. Keybinds using the ALT (or M Commands are mostly for actions requiring user input. You can type a command with arguments by pressing the corresponding keybind above. +* help: show this help page * o(pen) : open this URL * q(uit): well, quit * h(ome): open your home page