mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-14 23:00:45 +01:00
Show python version in --version
This commit is contained in:
parent
75ef866214
commit
c1b67f2514
@ -59,9 +59,11 @@ def how_to_configure_alias():
|
|||||||
def main():
|
def main():
|
||||||
parser = ArgumentParser(prog='thefuck')
|
parser = ArgumentParser(prog='thefuck')
|
||||||
version = get_installation_info().version
|
version = get_installation_info().version
|
||||||
parser.add_argument('-v', '--version',
|
parser.add_argument(
|
||||||
action='version',
|
'-v', '--version',
|
||||||
version='%(prog)s {}'.format(version))
|
action='version',
|
||||||
|
version='The Fuck {} using Python {}'.format(
|
||||||
|
version, sys.version.split()[0]))
|
||||||
parser.add_argument('-a', '--alias',
|
parser.add_argument('-a', '--alias',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help='[custom-alias-name] prints alias for current shell')
|
help='[custom-alias-name] prints alias for current shell')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user