script: move from delete to --delete

This commit is contained in:
2019-08-14 20:53:42 +02:00
parent 0f92ef1a5f
commit bcc5c785ba
2 changed files with 6 additions and 6 deletions

View File

@@ -35,22 +35,22 @@ $ alacritty-config key_bindings.2.action
Paste # or whatever you set it to 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! Its gone! # Poof! Its gone!
``` ```
If you want to add or edit a property, simply add a different YAML-parseable property. 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 $ alacritty-config tabspaces 4
# Set tabspaces to 4 # Set tabspaces to 4
$ alacritty-config tabspaces '"delete"' $ alacritty-config tabspaces '"--delete"'
# Set tabspaces to "delete", which wont work # Set tabspaces to "--delete", which wont work
``` ```
### GUI ### GUI

View File

@@ -67,7 +67,7 @@ def parse_action():
if len(args) == 2: if len(args) == 2:
return ShowAction(path) return ShowAction(path)
if len(args) == 3 and args[2] == 'delete': if len(args) == 3 and args[2] == '--delete':
return DeleteAction(path) return DeleteAction(path)
return AddAction(path, args[2]) return AddAction(path, args[2])