script: move from delete to --delete
This commit is contained in:
10
README.md
10
README.md
@@ -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! It’s gone!
|
# Poof! It’s 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 won’t work
|
# Set tabspaces to "--delete", which won’t work
|
||||||
```
|
```
|
||||||
|
|
||||||
### GUI
|
### GUI
|
||||||
|
@@ -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])
|
||||||
|
Reference in New Issue
Block a user