parse-options.c: display subcommands properly in check_typos by aubymori · Pull Request #2084 · gitgitgadget/git · GitHub
Skip to content

parse-options.c: display subcommands properly in check_typos#2084

Open
aubymori wants to merge 1 commit intogitgitgadget:masterfrom
aubymori:master
Open

parse-options.c: display subcommands properly in check_typos#2084
aubymori wants to merge 1 commit intogitgitgadget:masterfrom
aubymori:master

Conversation

@aubymori
Copy link
Copy Markdown

@aubymori aubymori commented Apr 6, 2026

No description provided.

Before this, mistyping a subcommand with one dash (e.g. `git stash -list`)
would display a message telling the user to try it with two dashes.
Since subcommands are parsed with no dashes, this is incorrect and simply
results in the help message for that command being shown.

This commit changes check_typos to check the command type and display a
proper message for subcommands.

Signed-off-by: aubymori <aubyomori@gmail.com>
@gitgitgadget
Copy link
Copy Markdown

gitgitgadget Bot commented Apr 6, 2026

@gitgitgadget gitgitgadget Bot added the new user label Apr 6, 2026
@Ikke
Copy link
Copy Markdown

Ikke commented Apr 6, 2026

/allow

@aubymori
Copy link
Copy Markdown
Author

aubymori commented Apr 6, 2026

/submit

@gitgitgadget
Copy link
Copy Markdown

gitgitgadget Bot commented Apr 6, 2026

User aubymori is now allowed to use GitGitGadget.

WARNING: aubymori has no public email address set on GitHub; GitGitGadget needs an email address to Cc: you on your contribution, so that you receive any feedback on the Git mailing list. Go to https://github.com/settings/profile to make your preferred email public to let GitGitGadget know which email address to use.

@gitgitgadget
Copy link
Copy Markdown

gitgitgadget Bot commented Apr 6, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants