From 6789701e238499c3ef867dacd6aaffae9a6141e2 Mon Sep 17 00:00:00 2001 From: Fabian van Dijk <35370400+Faaab@users.noreply.github.com> Date: Tue, 8 Oct 2019 23:44:22 +0200 Subject: [PATCH] Add fuck --hard as alternative to fuck --yeah (#963) * Add fuck --hard as alternative to fuck --yeah * Fix missing comma in thefuck/argument_parser.py Co-Authored-By: lomckee * Update README on fuck --hard --- README.md | 2 +- thefuck/argument_parser.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4b282736..5db6b624 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ 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 `--yeah` option (or just `-y` for short): +To run fixed commands without confirmation, use the `--yeah` option (or just `-y` for short, or `--hard` if you're especially frustrated): ```bash fuck --yeah diff --git a/thefuck/argument_parser.py b/thefuck/argument_parser.py index b7b97837..69c247f1 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', '--yeah', + '-y', '--yes', '--yeah', '--hard', action='store_true', help='execute fixed command without confirmation') group.add_argument(