You've already forked httpie-cli
							
							
				mirror of
				https://github.com/httpie/cli.git
				synced 2025-10-30 23:47:52 +02:00 
			
		
		
		
	Add httpie --version (#1220)
This commit is contained in:
		| @@ -1,5 +1,6 @@ | ||||
| from textwrap import dedent | ||||
| from httpie.cli.argparser import HTTPieManagerArgumentParser | ||||
| from httpie import __version__ | ||||
|  | ||||
| COMMANDS = { | ||||
|     'plugins': { | ||||
| @@ -90,4 +91,14 @@ parser.add_argument( | ||||
|     ''' | ||||
| ) | ||||
|  | ||||
| parser.add_argument( | ||||
|     '--version', | ||||
|     action='version', | ||||
|     version=__version__, | ||||
|     help=''' | ||||
|     Show version and exit. | ||||
|  | ||||
|     ''' | ||||
| ) | ||||
|  | ||||
| generate_subparsers(parser, parser, COMMANDS) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user