From c1b67f25142b034ab66a9a4834260467f09fb494 Mon Sep 17 00:00:00 2001 From: nvbn Date: Mon, 28 Sep 2015 16:47:54 +0800 Subject: [PATCH] Show python version in `--version` --- thefuck/main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/thefuck/main.py b/thefuck/main.py index b5808529..d3d5eabc 100644 --- a/thefuck/main.py +++ b/thefuck/main.py @@ -59,9 +59,11 @@ def how_to_configure_alias(): def main(): parser = ArgumentParser(prog='thefuck') version = get_installation_info().version - parser.add_argument('-v', '--version', - action='version', - version='%(prog)s {}'.format(version)) + parser.add_argument( + '-v', '--version', + action='version', + version='The Fuck {} using Python {}'.format( + version, sys.version.split()[0])) parser.add_argument('-a', '--alias', action='store_true', help='[custom-alias-name] prints alias for current shell')