mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 12:06:04 +00:00
Added a fuck off command, as per #420
This commit is contained in:
parent
d582159670
commit
095ecfcae9
@ -46,6 +46,10 @@ class Parser(object):
|
||||
'--force-command',
|
||||
action='store',
|
||||
help=SUPPRESS)
|
||||
self._parser.add_argument(
|
||||
'off',
|
||||
action='store_true',
|
||||
help='')
|
||||
self._parser.add_argument(
|
||||
'command',
|
||||
nargs='*',
|
||||
|
@ -16,7 +16,9 @@ def main():
|
||||
parser = Parser()
|
||||
known_args = parser.parse(sys.argv)
|
||||
|
||||
if known_args.help:
|
||||
if known_args.off:
|
||||
logs.failed('KTHXBAI')
|
||||
elif known_args.help:
|
||||
parser.print_help()
|
||||
elif known_args.version:
|
||||
logs.version(get_installation_info().version,
|
||||
|
Loading…
x
Reference in New Issue
Block a user