Skip to content

Commit

Permalink
[ADD] Add the /help command
Browse files Browse the repository at this point in the history
  • Loading branch information
ValekoZ committed Oct 10, 2020
1 parent 1d68048 commit d37552a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rofipaste/rofipaste.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ def commandInterpreter(cmd: str, editor: str) -> None:
commands = {
"config":
lambda *args: edit_file(config_file_name, editor, xdg_open=True),
"help":
lambda *args: show_message(
"Available commands:\n - /help : Show this menu\n - /config : Open your config file in your default editor"
),
}
if cmd[0] == command_prefix:
args = cmd[1:].split(" ")
Expand Down

0 comments on commit d37552a

Please sign in to comment.