mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 01:28:56 +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:
parent
70b414aca2
commit
84243e7deb
@ -5,11 +5,10 @@ from .utils import get_alias
|
|||||||
|
|
||||||
|
|
||||||
class Parser(object):
|
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):
|
def __init__(self):
|
||||||
self._parser = ArgumentParser(prog='thefuck', add_help=False)
|
self._parser = ArgumentParser(prog='thefuck', add_help=False)
|
||||||
self._add_arguments()
|
self._add_arguments()
|
||||||
@ -17,7 +16,7 @@ class Parser(object):
|
|||||||
def _add_arguments(self):
|
def _add_arguments(self):
|
||||||
"""Adds arguments to parser."""
|
"""Adds arguments to parser."""
|
||||||
self._parser.add_argument(
|
self._parser.add_argument(
|
||||||
'-v', '--version',
|
'-v', '--version', '--show-version'
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help="show program's version number and exit")
|
help="show program's version number and exit")
|
||||||
self._parser.add_argument(
|
self._parser.add_argument(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user