5 Commits
Author SHA1 Message Date
Zara Grigoryan 4c4b59d506 cmdline: name option groups in help output
Preserve declarative option groups when rendering help and add translated section headings. Keep parser argument ordering and completion behaviour unchanged. Update help tests for named sections.
2026-09-23 15:10:46 +00:00
Zara Grigoryan 13dac31881 cmdline: add help for remaining apt commands
Add concise usage and description text for history and compatibility commands that previously showed only declarative option help.

Reuse canonical cleanup help for legacy aliases and extend integration coverage for the new prose, aliases, and inherited options.
2026-08-17 12:37:26 +00:00
Zara Grigoryan af4548f601 cmdline: refine command-specific help rendering
Keep recognized commands in command-specific help even when they do not have
additional prose, and map aliases to canonical help output.

Simplify shared why/why-not help and derive option formatting directly from
declarative metadata, including translated value widths and bitmask flags.
2026-08-13 20:28:57 +00:00
Zara Grigoryan 967bef1ca4 cmdline: render declarative options in command help
Collect command, inherited binary, and global options from the declarative
metadata and render them alongside command-specific prose.

Keep option formatting derived from the same metadata used by command-line
parsing.
2026-08-13 20:27:05 +00:00
Simon Johnsson 1f781df194 cmdline: add command-specific help texts
Add focused usage and description callbacks for documented apt commands and
make both apt <command> --help and apt help <command> select them.

Add integration coverage and extract apt(8) descriptions with XSLT so tests can
detect generic fallbacks and vocabulary drift.
2026-08-13 20:25:02 +00:00