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

Cleaned formatting a bit and added more Command Aliases (i really love this project and want to contribute to it)

This commit is contained in:
xXraxFraeyXx 2019-10-31 21:40:45 +01:00
parent 70b414aca2
commit 84243e7deb

View File

@ -5,11 +5,10 @@ from .utils import get_alias
class Parser(object):
"""Argument parser that can handle arguments with our special
placeholder.
"""
Argument parser that can handle arguments with our special
placeholder.
"""
def __init__(self):
self._parser = ArgumentParser(prog='thefuck', add_help=False)
self._add_arguments()
@ -17,7 +16,7 @@ class Parser(object):
def _add_arguments(self):
"""Adds arguments to parser."""
self._parser.add_argument(
'-v', '--version',
'-v', '--version', '--show-version'
action='store_true',
help="show program's version number and exit")
self._parser.add_argument(