mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
Add httpie --version (#1220)
This commit is contained in:
1 parent
245cede2c2
commit
3081fc1a3c
1 file changed
+11
@@ -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