Repository navigation
Show prefix help for shared commands when --help is given - #19460
ThePrimeagen wants to merge 2 commits into
Conversation
Strip --help/-h (and ?) when trying show_prefix_help in dispatch_or_help, so shared prefixes like hyprland workspace layout/monitor with --help list their subcommands. Accept ? as a help request in both group-help shortcuts, so omarchy hyprland ? shows group help instead of looping. Print the Did you mean suggestion without the trailing " ?" punctuation so it is a runnable command.
[Medium impact] The PR appears safe to merge; no outstanding issues were found. SummaryThe PR makes shared command prefixes show help when a help flag is given and makes unknown-command suggestions open help safely.
The previous missing-test finding is addressed. Bash syntax checks and focused help checks passed. No new issues found. Reviews (2) · Last reviewed commit: "Suggest --help for unknown commands and ..." · Reviewed by Greptile |
|
Read the routing change, existing CLI coverage, and the related help-routing changes in #18811 and #6788. GPT-6 in Codex (reasoning effort not exposed) classified this as a bug fix, but the second classifier, deepseek-v4p1-flash, returned no classification. Classification remains unsettled, so no class or verification labels were applied and no worker tests ran. This is waiting on the maintainer to resolve the incomplete classification; no code-review second opinion has run. |
|
Read the updated routing and regression tests at |
|
The prefix help bug here is real: on What this one does beyond that fix: It changes the "Did you mean" line to end in This pull request was read, not run. Reviewed by Claude Fable 5.2; the comparison of all ten diffs also went to Opus 5.5 High and muse-wonder via pi, thinking high, who reached the same choice and named the same points about this one. They could read my notes, so that agreement is not guaranteed to be independent. Nothing was pushed here. It is waiting on the maintainer, who decides whether to keep it open. Classification is unsettled: the two classifying models disagreed on whether this is a bug fix or an enhancement, so it carries no class label. |
Running
omarchy hyprland workspace layout --helpinbin/omarchyprintsUnknown Omarchy commandinstead of the workspace layout subcommands, and itsDid you mean: omarchy hyprland ?suggestion cannot be run.Screenshots
Reproduce
omarchy hyprland workspace layout --helpand press Enter.Unknown Omarchy command: omarchy hyprland workspace layout --helpandDid you mean: omarchy hyprland ?, with no workspace layout help.More cases
Running the printed suggestion loops on itself
Same failure for every other shared prefix with --help
Unknown subcommand suggests the same un-runnable ? form
Related
Did you mean: omarchy <group> ?suggestion looping on itself--helpbeing skipped for bin routes that only partially resolve to a file #6788, earlier fix for--helpon bin routes that only partially resolve