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
6 changes: 5 additions & 1 deletion PQEnalyzer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ def main():
"""
parser = argparse.ArgumentParser(
prog="pqenalyzer",
usage=(
"%(prog)s [-h] [-v] [gui|tui] "
"[--pq | -q | --box | --opt] FILE [FILE ...]"
),
description="Plot and monitor PQ simulation output.",
epilog="Pass files directly to open the GUI: pqenalyzer FILE [FILE ...]",
)
Expand All @@ -98,7 +102,7 @@ def main():

subparsers = parser.add_subparsers(
dest="mode",
metavar="{gui,tui}",
metavar="[gui|tui]",
required=True,
)
gui_parser = subparsers.add_parser("gui", help="Open the GUI (default).")
Expand Down
6 changes: 5 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ def test_cli_help_mentions_gui_and_tui_modes():

assert result.returncode == 0
assert "Traceback" not in result.stderr
assert "{gui,tui}" in result.stdout
assert (
"usage: pqenalyzer [-h] [-v] [gui|tui] "
"[--pq | -q | --box | --opt] FILE [FILE ...]"
) in result.stdout
assert "{gui,tui}" not in result.stdout
assert "gui" in result.stdout
assert "tui" in result.stdout

Expand Down
Loading