Skip to content

mcpplibs.cmdline 0.0.7: subcommands in groups and in one order for help, snapshot and messages; a help epilogue - #974

Merged
Sunrisepeak merged 1 commit into
mainfrom
cmdline-0.0.7
Dec 2, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
cmdline-0.0.7

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

mcpplibs.cmdline 0.0.7 (mcpplibs/cmdline#15): a help can list its subcommands in groups and by name, and say what comes after the list. app.group(s) on a subcommand is the heading its parent's help lists it under; app.help_options({ .order = alphabetical, .ungrouped = "..." }) orders a group's commands by name and gives the rest a heading; app.help_epilogue(s) is printed after the list. One listing serves print_help, snapshot(app) and the message that a subcommand is required, so a tool's help, its completions and its messages agree. Nothing opted in, the help is byte-identical to 0.0.6.

  • pkgs/c/cmdline.lua: 0.0.7 on linux, macosx and windows. GitHub and GitCode serve the same tag archive (sha256 2e998d70953c0da856dc2131902414ab25bc9faafd0bae255290d833ad0e9b49); the Form B source glob covers the layout (0.0.7 changes src/cmdline.cppm only).
  • tests/examples/cmdline moves to 0.0.7 and checks that the listing groups its subcommands, by name inside each, without the hidden one.
  • CHANGELOG.

Verification:

  • the descriptor lints (check_mirror_urls, check_package_name, check_reserved_namespace, check_cross_package_refs, check_platform_version_parity, check_duplicate_versions) pass on pkgs/*/*.lua;
  • bash tests/run_members.sh cmdline passes: mcpp resolved mcpplibs:cmdline@0.0.7 through this entry, downloaded the archive from the GitCode mirror (the entry's sha256), compiled it, and the consumer test answered cmdline: ok.

…lp, snapshot and messages; a help epilogue

- `pkgs/c/cmdline.lua`: 0.0.7 on linux, macosx and windows; GitHub and GitCode serve the same tag archive (sha256 2e998d70…); the Form B source glob covers the layout.
- `tests/examples/cmdline` moves to 0.0.7 and checks the grouped, by-name listing without the hidden command.
- CHANGELOG.
@Sunrisepeak
Sunrisepeak merged commit bcf6e27 into main Dec 2, 2026
21 checks passed
@Sunrisepeak
Sunrisepeak deleted the cmdline-0.0.7 branch December 2, 2026 22:03
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.

1 participant