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

Use cobra ExactArgs #727

Closed
Elbehery opened this issue Apr 17, 2024 · 0 comments · Fixed by #728
Closed

Use cobra ExactArgs #727

Elbehery opened this issue Apr 17, 2024 · 0 comments · Fixed by #728
Assignees

Comments

@Elbehery
Copy link
Member

          This may actually be a question for @ahrtr. Is there any particular reason why we're not using https://pkg.go.dev/github.com/spf13/cobra#ExactArgs. I know that the `surgery` sub-commands do the check this same way. Is it to give more context to the error? i.e., rather than erroring with a wrong number of arguments, saying that the first argument needs to be a path?

Originally posted by @ivanvc in #723 (comment)

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

Successfully merging a pull request may close this issue.

1 participant