notation icon indicating copy to clipboard operation
notation copied to clipboard

fix: add number of arguments validation

Open priteshbandi opened this issue 1 year ago • 2 comments

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

priteshbandi avatar May 13 '23 00:05 priteshbandi