You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve output if invalid number of command line arguments are provided #458
For all ORAS commands (login, logout, pull, push, attach, discover, copy), if the number of input argument doesn't match expected, user will get errors like:
Error: accepts X arg(s), received Y
It could confuse users who are not familiar with cobra concepts. E.g. they might think number of flags doesn't meet what is expected.
We need to provide more clear details for the error, including:
Activity
shizhMSFT commentedon Jul 26, 2022
In that case, users should run the
helpcommand for usages.