Skip to content

docs: fix parameter names showing as None in CLI usage docs#2671

Draft
Copilot wants to merge 1 commit intomainfrom
copilot/monitor-ci-runs
Draft

docs: fix parameter names showing as None in CLI usage docs#2671
Copilot wants to merge 1 commit intomainfrom
copilot/monitor-ci-runs

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 22, 2026

Other CI failures found on main (documented below, no simple fix in charmcraft):

  • snap-store-tests failing: Charmhub credentials expired (infrastructure issue)
  • snap-tests (ubuntu-22.04/20.04): smoketests/different-dir-metadata fails due to craft_providers snapd initialization issue (upstream issue in craft_providers; see PR Investigation: Spread test failures are due to craft_providers snapd initialization issue #2509)
  • snap-tests (ubuntu-26.04): Transient apt package unavailability on Ubuntu devel daily builds (gcc and python3-dev not found) — not fixable in charmcraft
  • Spread tests have been failing consistently since at least March 2026 (all due to upstream issues)

Required arguments with no explicit metavar were displaying as <None>
in the generated command reference docs. Fix by falling back to the
argparse convention: positional args use dest, optional args use
dest.upper().

Fixes #2578
Fixes #2642

Agent-Logs-Url: https://github.com/canonical/charmcraft/sessions/214f19c4-3b9e-4123-9e2d-d2fc75b2ca6d

Co-authored-by: lengau <4305943+lengau@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: The usage parameters show up as None

2 participants