8f27532ce0
Commands using cobra's ExactArgs feature previously did not have any validation that the ExactArgs was being enforced. This patchset adds tests to ensure that in the cases ExactArgs=n, that only n args are accepted, and other values such as x or y throw an appropriate error. Change-Id: I27b5774e79db51e0e9bc81d8c207be80811ba459
8 lines
114 B
Plaintext
8 lines
114 B
Plaintext
Error: accepts 1 arg(s), received 2
|
|
Usage:
|
|
completion SHELL [flags]
|
|
|
|
Flags:
|
|
-h, --help help for completion
|
|
|