Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion httpdbg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.1.6"
__version__ = "2.1.7"

__all__ = ["export_html", "httprecord", "HTTPRecords"]

Expand Down
8 changes: 4 additions & 4 deletions httpdbg/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
Loading