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:
parent
d582159670
commit
095ecfcae9
@ -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='*',
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user