diff --git a/README.md b/README.md index 093bf19..f6713c2 100644 --- a/README.md +++ b/README.md @@ -35,22 +35,22 @@ $ alacritty-config key_bindings.2.action Paste # or whatever you set it to ``` -If you want to delete a property, simply add `delete`. +If you want to delete a property, simply add `--delete`. ``` -$ alacritty-config tabspaces delete +$ alacritty-config tabspaces --delete # Poof! It’s gone! ``` If you want to add or edit a property, simply add a different YAML-parseable property. -If you want to set something to `delete`, simply quote it. +If you want to set something to `--delete`, simply quote it. ``` $ alacritty-config tabspaces 4 # Set tabspaces to 4 -$ alacritty-config tabspaces '"delete"' -# Set tabspaces to "delete", which won’t work +$ alacritty-config tabspaces '"--delete"' +# Set tabspaces to "--delete", which won’t work ``` ### GUI diff --git a/alacritty_config.py b/alacritty_config.py index 3579d94..88bced2 100644 --- a/alacritty_config.py +++ b/alacritty_config.py @@ -67,7 +67,7 @@ def parse_action(): if len(args) == 2: return ShowAction(path) - if len(args) == 3 and args[2] == 'delete': + if len(args) == 3 and args[2] == '--delete': return DeleteAction(path) return AddAction(path, args[2])