1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-31 02:01:13 +00:00

added --yeah as an alterative arg to -y and --yes; updated README.md (#822)

This commit is contained in:
Glen Yu 2018-07-09 18:50:11 -04:00 committed by Vladimir Iakovlev
parent 59745942b5
commit 142ef6e66c
2 changed files with 3 additions and 3 deletions

View File

@ -146,10 +146,10 @@ eval $(thefuck --alias FUCK)
Changes are only available in a new shell session. To make changes immediately
available, run `source ~/.bashrc` (or your shell config file like `.zshrc`).
To run fixed commands without confirmation, use the `-y` option:
To run fixed commands without confirmation, use the `--yeah` option (or just `-y` for short):
```bash
fuck -y
fuck --yeah
```
To fix commands recursively until succeeding, use the `-r` option:

View File

@ -55,7 +55,7 @@ class Parser(object):
"""It's too dangerous to use `-y` and `-r` together."""
group = self._parser.add_mutually_exclusive_group()
group.add_argument(
'-y', '--yes',
'-y', '--yes', '--yeah',
action='store_true',
help='execute fixed command without confirmation')
group.add_argument(