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

fixes args issue for commands #301

Closed
wants to merge 2 commits into from

Conversation

rizul2108
Copy link
Contributor

@rizul2108 rizul2108 commented Jan 3, 2025

This PR fixes issue #293 by giving the below error

rizul@rizu:~/harbor-cli$ ./harbor-cli project list create
Error: accepts 0 arg(s), received 1

This PR reviewed all commands where the No. of arguments were not specified and addresses that and also replaced cobra.NoArgs with cobra.ExactArgs(0) as later gives more defined error.

@rizul2108
Copy link
Contributor Author

@bupd can you please review this PR

@rizul2108 rizul2108 closed this by deleting the head repository Jan 3, 2025
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