mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 11:29:48 +08:00
fix: httprunner command
This commit is contained in:
@@ -78,7 +78,13 @@ def main():
|
||||
sys.exit(0)
|
||||
elif len(sys.argv) == 2:
|
||||
# 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
|
||||
sub_parser_scaffold.print_help()
|
||||
elif sys.argv[1] == "har2case":
|
||||
|
||||
Reference in New Issue
Block a user