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:
- what is expected
- what is got from input
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:
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: