update help description

This commit is contained in:
debugtalk
2018-04-17 22:20:09 +08:00
parent de14f2877b
commit 89f97d8b0a
+2 -3
View File
@@ -7,7 +7,7 @@ import sys
import unittest import unittest
from httprunner import logger from httprunner import logger
from httprunner.__about__ import __version__ from httprunner.__about__ import __description__, __version__
from httprunner.compat import is_py2 from httprunner.compat import is_py2
from httprunner.task import HttpRunner from httprunner.task import HttpRunner
from httprunner.utils import (create_scaffold, get_python2_retire_msg, from httprunner.utils import (create_scaffold, get_python2_retire_msg,
@@ -18,8 +18,7 @@ from httprunner.utils import (create_scaffold, get_python2_retire_msg,
def main_hrun(): def main_hrun():
""" API test: parse command line options and run commands. """ API test: parse command line options and run commands.
""" """
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(description=__description__)
description='HTTP test runner, not just about api test and load test.')
parser.add_argument( parser.add_argument(
'-V', '--version', dest='version', action='store_true', '-V', '--version', dest='version', action='store_true',
help="show version") help="show version")