1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 06:38:32 +00:00

Merge 095ecfcae9016053e5d85858134b66092a44dc9a into c7e7e1d884d3bb241ea6448f72a989434c2a35ec

This commit is contained in:
Stef Pletinck 2024-03-01 16:04:40 +01:00 committed by GitHub
commit 5db875021e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -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='*',

View File

@ -17,7 +17,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_version(),