mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	Show python version in --version
				
					
				
			This commit is contained in:
		| @@ -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( | ||||||
|  |         '-v', '--version', | ||||||
|         action='version', |         action='version', | ||||||
|                         version='%(prog)s {}'.format(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') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user