1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-18 20:11:17 +00:00

Added a fuck off command, as per #420

This commit is contained in:
Stef Pletinck 2017-11-22 10:27:00 +01:00
parent d582159670
commit 095ecfcae9
2 changed files with 7 additions and 1 deletions

View File

@ -46,6 +46,10 @@ class Parser(object):
'--force-command', '--force-command',
action='store', action='store',
help=SUPPRESS) help=SUPPRESS)
self._parser.add_argument(
'off',
action='store_true',
help='')
self._parser.add_argument( self._parser.add_argument(
'command', 'command',
nargs='*', nargs='*',

View File

@ -16,7 +16,9 @@ def main():
parser = Parser() parser = Parser()
known_args = parser.parse(sys.argv) known_args = parser.parse(sys.argv)
if known_args.help: if known_args.off:
logs.failed('KTHXBAI')
elif known_args.help:
parser.print_help() parser.print_help()
elif known_args.version: elif known_args.version:
logs.version(get_installation_info().version, logs.version(get_installation_info().version,