diff --git a/cmd/flags.go b/cmd/flags.go index ee7f95ffeb..4cece39117 100644 --- a/cmd/flags.go +++ b/cmd/flags.go @@ -77,12 +77,10 @@ func initGlobalConfigFlags(cmd *cobra.Command, configFilePath *string) { // start command to run the client against test networks. Only one flag // from this set is allowed. func initGlobalNetworkFlags(cmd *cobra.Command) { - // TODO: Remove the mainnet flag. - // DEPRECATED cmd.PersistentFlags().Bool( network.Mainnet.String(), false, - "Mainnet network (DEPRECATED)", + "Mainnet network", ) cmd.PersistentFlags().Bool( diff --git a/config/config.go b/config/config.go index 910e5c48ee..cc008478ef 100644 --- a/config/config.go +++ b/config/config.go @@ -119,15 +119,6 @@ func (c *Config) ReadConfig(configFilePath string, flagSet *pflag.FlagSet, categ if err != nil { return fmt.Errorf("unable to resolve networks: [%w]", err) } - - // TODO: Remove the mainnet flag. - // DEPRECATED - if isMainnet, err := flagSet.GetBool(network.Mainnet.String()); err == nil && isMainnet { - logger.Warnf( - "--%s flag is deprecated, to run the client against the mainnet don't provide any network flag", - network.Mainnet.String(), - ) - } } // Read configuration from a file if the config file path is set. diff --git a/docs/resources/client-start-help b/docs/resources/client-start-help index f0e5338d60..09bc3386aa 100644 --- a/docs/resources/client-start-help +++ b/docs/resources/client-start-help @@ -44,7 +44,7 @@ Flags: Global Flags: -c, --config string Path to the configuration file. Supported formats: TOML, YAML, JSON. --developer Developer network - --mainnet Mainnet network (DEPRECATED) + --mainnet Mainnet network --testnet Testnet network Environment variables: