GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — feat(argv): suggest what was probably meant by jdx · Pull Request #897 · jdx/usage feat(argv): suggest what was probably meant #897New issueHave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails. Already on GitHub? Sign in to your account
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f43a4e6
feat(argv): suggest what was probably meant
jdx d75ac3c
fix(argv): call a dash-prefixed word a flag, not a subcommand
jdx 96ae620
fix(argv): score the way clap scores, and offer only flags that work …
jdx 59601c1
fix(argv): a value attached to a flag is not part of its name
jdx b09e77f
fix(argv): tell two mounts of one subcommand apart
jdx ba71a98
fix(argv): four from review, and a build that only breaks for adopters
jdx db1ac64
fix(argv): suggest a negation, which is a name that works
jdx File filterConversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page. Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page. Diff viewDiff view
fix(argv): call a dash-prefixed word a flag, not a subcommand
`mise doctor --forc` read as "unrecognized subcommand '--forc'", which answers a question nobody asked — and it happened on exactly the commands where the mistake is easiest to make, the ones with subcommands, where a bare word *would* have been one. What the word looks like decides now, before anything about the command does: a dash-prefixed token is a flag the user got wrong, and gets the flag wording and a flag suggestion. clap says the same sentence for the same line, which the gate test holds. A bare word is still a subcommand, and a lone `-` is still a word — it is what several tools spell "standard input". Raised by jdx. Co-Authored-By: Claude Opus 5 <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
|
| You are visitor 01402809 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |