diff --git a/README.md b/README.md index fca3abc..75f607a 100644 --- a/README.md +++ b/README.md @@ -168,10 +168,11 @@ options: --force-quit, -q stop the server even if the requests have not been read --export-html EXPORT_HTML the path to the export file - --console run a python console (default) + --no-banner do not print the banner in the console + --console run a Python console (default) --module MODULE, -m MODULE - run library module as a script (the next args are passed to pytest as is) - --script SCRIPT run a script (the next args are passed to the script as is) + run a Python module (like 'python -m'; remaining arguments are passed to the module) + --script SCRIPT run a Python script (remaining arguments are passed to the script) ``` ### web interace diff --git a/httpdbg/__init__.py b/httpdbg/__init__.py index 92386af..3c0f41d 100644 --- a/httpdbg/__init__.py +++ b/httpdbg/__init__.py @@ -1,4 +1,4 @@ -__version__ = "2.1.6" +__version__ = "2.1.7" __all__ = ["export_html", "httprecord", "HTTPRecords"] diff --git a/httpdbg/args.py b/httpdbg/args.py index 9429b6d..484571d 100644 --- a/httpdbg/args.py +++ b/httpdbg/args.py @@ -70,7 +70,7 @@ def read_args(args: list[str]) -> tuple[argparse.Namespace, list[str]]: help="The log level", ) - parser.add_argument("--log", type=Path, help="path to the log file.") + parser.add_argument("--log", type=Path, help="path to the log file") parser.add_argument( "--no-banner", @@ -81,20 +81,20 @@ def read_args(args: list[str]) -> tuple[argparse.Namespace, list[str]]: actions = parser.add_mutually_exclusive_group() actions.add_argument( - "--console", action="store_true", help="run a python console (default)" + "--console", action="store_true", help="run a Python console (default)" ) actions.add_argument( "--module", "-m", type=str, - help="run library module as a script (the next args are passed to pytest as is)", + help="run a Python module (like 'python -m'; remaining arguments are passed to the module)", ) actions.add_argument( "--script", type=str, - help="run a script (the next args are passed to the script as is)", + help="run a Python script (remaining arguments are passed to the script)", ) return parser.parse_args(httpdbg_args), client_args