You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add help text for the platform argument on pn run, logs, build, and app-id #55
In src/pythonnative/cli/pn.py, _build_parser() gives the optional platform argument a help= string for pn doctor (line 1009) and pn devices (line 1027), but the required platform argument on four other subcommands has none:
parser_run.add_argument("platform", choices=["android", "ios"]) # line 1034parser_logs.add_argument("platform", choices=["android", "ios"]) # line 1047parser_build.add_argument("platform", choices=["android", "ios"]) # line 1051parser_app_id.add_argument("platform", choices=["android", "ios"]) # line 1061
As a result, pn run --help, pn logs --help, pn build --help, and pn app-id --help list {android,ios} under "positional arguments" with an empty description, while every flag on the same subcommand is described.
Suggested fix
Add a short help= string to each of the four add_argument("platform", ...) calls, for example help="Target platform". Keep the wording consistent across the four and with the existing doctor / devices strings.
Extend the existing help-output tests in tests/test_cli.py (test_cli_run_help_lists_flags at line 299 and test_cli_build_help_lists_debug at line 311) to assert the new text appears, or add one small parametrized test over the four subcommands.
Verification
uv run pn run --help (and logs, build, app-id) shows a description next to {android,ios}.
./scripts/check.sh passes.
Suggested commit message
docs(cli): add help text for positional platform arguments
Plan: add a consistent help="Target platform" string to the four add_argument("platform", ...) calls for pn run, logs, build, and app-id in src/pythonnative/cli/pn.py, matching the existing doctor/devices style. Extend the help-output tests in tests/test_cli.py to assert the new text appears. Verify with ./scripts/check.sh.
Activity
glenlouis8 commentedon Sep 3, 2026
I'd like to take this one.
Plan: add a consistent
help="Target platform"string to the fouradd_argument("platform", ...)calls forpn run,logs,build, andapp-idinsrc/pythonnative/cli/pn.py, matching the existingdoctor/devicesstyle. Extend the help-output tests intests/test_cli.pyto assert the new text appears. Verify with./scripts/check.sh.glenlouis8 commentedon Sep 5, 2026
PR: #81
docs(cli): add help text for positional platform arguments (#81)