From 0ca362a74e26c850d147ce127745514de17b1e98 Mon Sep 17 00:00:00 2001 From: Georgy Moiseev Date: Tue, 9 Jul 2024 15:53:55 +0300 Subject: [PATCH] configure: replace Cyrillic c with Latin in error --- cli/configure/configure.go | 4 ++-- cli/configure/configure_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/configure/configure.go b/cli/configure/configure.go index 3491d687f..8b608cf34 100644 --- a/cli/configure/configure.go +++ b/cli/configure/configure.go @@ -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 diff --git a/cli/configure/configure_test.go b/cli/configure/configure_test.go index 050fdc274..3c669cb2b 100644 --- a/cli/configure/configure_test.go +++ b/cli/configure/configure_test.go @@ -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}, ""},