Skip to content
New issue

Have 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

[proposal] Print a helpful suggestion for wrong argument #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ytkg
Copy link
Contributor

@ytkg ytkg commented May 6, 2023

I didn't get the expected behavior.

$ gh annotations ytkg/takagi-dev
Repository  Workflow  Event  Job  JobStartedAt  JobCompletedAt  Conclusion  AnnotationLevel  Message

Because, I forgot to include the '-repo' option.

$ gh annotations -repo ytkg/takagi-dev
Repository       Workflow  Event  Job     JobStartedAt          JobCompletedAt        Conclusion  AnnotationLevel  Message
ytkg/takagi-dev  Deploy    push   Deploy  2023-05-06T14:49:24Z  2023-05-06T14:51:11Z  success     warning          Node.js 12 actions are deprecate...

So I tried to make it possible to notice the mistakenly entered argument.
I'm not proficient in the Go language. Please let me know if there is a better way to do it.

$ gh annotations ytkg/takagi-dev
Did you mean this?
        gh annotations -repo ytkg/takagi-dev

@ytkg ytkg changed the title Print a helpful suggestion for wrong argument [proposal] Print a helpful suggestion for wrong argument May 6, 2023
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