Merge PR #5920: Fix validate cmd bug
This commit is contained in:
@@ -41,6 +41,8 @@ func TestValidateCmd(t *testing.T) {
|
||||
{"no command provided", []string{}, false},
|
||||
{"help flag", []string{"commission", "--help"}, false}, // nolint: misspell
|
||||
{"shorthand help flag", []string{"commission", "-h"}, false}, // nolint: misspell
|
||||
{"flag only, no command provided", []string{"--gas", "1000atom"}, false},
|
||||
{"flag and misspelled command", []string{"--gas", "1000atom", "comission"}, true}, // nolint: misspell
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
||||
Reference in New Issue
Block a user