notation
notation copied to clipboard
fix: add number of arguments validation
fix: add number of arguments validation
This PR is continuation of https://github.com/notaryproject/notation/pull/649
https://github.com/notaryproject/notation/pull/649#discussion_r1184665327 @JeyJeyGao I did try using positional and Custom Arguments but the error messages were not user friendly. Also, we needed to rewrite bunch of unit tests to support this.
./notation verify someImage -m "adasd=1" sadad=2
Error: accepts 1 arg(s), received 2