Skip to content

Commit 8f8333b

Browse files
author
David Shiflet (from Dev Box)
committed
fix error message
1 parent 33b717b commit 8f8333b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/sqlcmd/sqlcmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ func normalizeFlags(cmd *cobra.Command) error {
472472
case "mandatory", "yes", "1", "t", "true", "disable", "optional", "no", "0", "f", "false", "strict", "m", "s", "o":
473473
return pflag.NormalizedName(name)
474474
default:
475-
err = invalidParameterError("-N", v, "m[andatory]", "yes", "1", "t[rue]", "disable", "o[ptional]", "no", "0", "f[alse]", "s[trict][:hostnameincertificate]")
475+
err = invalidParameterError("-N", v, "m[andatory]", "yes", "1", "t[rue]", "disable", "o[ptional]", "no", "0", "f[alse]", "s[trict][:<hostnameincertificate>]")
476476
return pflag.NormalizedName("")
477477
}
478478
case format:

cmd/sqlcmd/sqlcmd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func TestInvalidCommandLine(t *testing.T) {
162162
{[]string{"-P"}, "'-P': Missing argument. Enter '-?' for help."},
163163
{[]string{"-;"}, "';': Unknown Option. Enter '-?' for help."},
164164
{[]string{"-t", "-2"}, "'-t -2': value must be greater than or equal to 0 and less than or equal to 65534."},
165-
{[]string{"-N", "invalid"}, "'-N invalid': Unexpected argument. Argument value has to be one of [m[andatory] yes 1 t[rue] disable o[ptional] no 0 f[alse] s[trict]]."},
165+
{[]string{"-N", "invalid"}, "'-N invalid': Unexpected argument. Argument value has to be one of [m[andatory] yes 1 t[rue] disable o[ptional] no 0 f[alse] s[trict][:<hostnameincertificate>]]."},
166166
}
167167

168168
for _, test := range commands {

0 commit comments

Comments
 (0)