From 142ef6e66c19af5a4a448ecdbb97d4eb9283b99f Mon Sep 17 00:00:00 2001 From: Glen Yu Date: Mon, 9 Jul 2018 18:50:11 -0400 Subject: [PATCH] added --yeah as an alterative arg to -y and --yes; updated README.md (#822) --- README.md | 4 ++-- thefuck/argument_parser.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index af3b06ad..c5e9cd25 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/thefuck/argument_parser.py b/thefuck/argument_parser.py index 8e79fc0a..b7b97837 100644 --- a/thefuck/argument_parser.py +++ b/thefuck/argument_parser.py @@ -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(