Skip to content

Commit

Permalink
configure: replace Cyrillic c with Latin in error
Browse files Browse the repository at this point in the history
  • Loading branch information
DifferentialOrange authored and psergee committed Jul 12, 2024
1 parent 4bcc74e commit 0ca362a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli/configure/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,12 @@ func ValidateCliOpts(cliCtx *cmdcontext.CliCtx) error {
}
if cliCtx.ConfigPath != "" {
return fmt.Errorf(
"you can specify only one of -L(--local), -с(--cfg) and 'TT_CLI_CFG' options")
"you can specify only one of -L(--local), -c(--cfg) and 'TT_CLI_CFG' options")
}
} else {
if cliCtx.IsSystem && cliCtx.ConfigPath != "" {
return fmt.Errorf(
"you can specify only one of -S(--system), -с(--cfg) and 'TT_CLI_CFG' options")
"you can specify only one of -S(--system), -c(--cfg) and 'TT_CLI_CFG' options")
}
}
return nil
Expand Down
4 changes: 2 additions & 2 deletions cli/configure/configure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ func TestValidateCliOpts(t *testing.T) {
}
testData := []cliCtxTest{
{cmdcontext.CliCtx{IsSystem: true, ConfigPath: "/" + ConfigName},
"you can specify only one of -S(--system), -с(--cfg) and 'TT_CLI_CFG' options"},
"you can specify only one of -S(--system), -c(--cfg) and 'TT_CLI_CFG' options"},
{cmdcontext.CliCtx{LocalLaunchDir: "/", ConfigPath: "/" + ConfigName},
"you can specify only one of -L(--local), -с(--cfg) and 'TT_CLI_CFG' options"},
"you can specify only one of -L(--local), -c(--cfg) and 'TT_CLI_CFG' options"},
{cmdcontext.CliCtx{IsSystem: true, LocalLaunchDir: "."},
"you can specify only one of -L(--local) and -S(--system) options"},
{cmdcontext.CliCtx{IsSystem: true}, ""},
Expand Down

0 comments on commit 0ca362a

Please sign in to comment.