mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 19:47:14 +08:00
fix: httprunner command
This commit is contained in:
+7
-1
@@ -78,7 +78,13 @@ def main():
|
|||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
elif len(sys.argv) == 2:
|
elif len(sys.argv) == 2:
|
||||||
# print help for sub-commands
|
# print help for sub-commands
|
||||||
if sys.argv[1] == "startproject":
|
if sys.argv[1] in ["-V", "--version"]:
|
||||||
|
# httprunner -V
|
||||||
|
print(f"{__version__}")
|
||||||
|
elif sys.argv[1] in ["-h", "--help"]:
|
||||||
|
# httprunner -h
|
||||||
|
parser.print_help()
|
||||||
|
elif sys.argv[1] == "startproject":
|
||||||
# httprunner startproject
|
# httprunner startproject
|
||||||
sub_parser_scaffold.print_help()
|
sub_parser_scaffold.print_help()
|
||||||
elif sys.argv[1] == "har2case":
|
elif sys.argv[1] == "har2case":
|
||||||
|
|||||||
Reference in New Issue
Block a user