forked from extern/httpie-cli
Add httpie --version (#1220)
This commit is contained in:
parent
245cede2c2
commit
3081fc1a3c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user