upadted to 1.24.0; fixed stb and spiddped doubles in precene
This commit is contained in:
@@ -28,7 +28,8 @@ Report bugs to https://git.amok.space/yevhen/resource-scraper/issues`
|
||||
|
||||
const (
|
||||
version = "0.1"
|
||||
defaultConfigPath = "config/default"
|
||||
defaultConfigPath = constant.DefaultConfigPath
|
||||
defaultConfigEnv = constant.DefaultEnvProd
|
||||
)
|
||||
|
||||
func ParseFlags() {
|
||||
@@ -37,8 +38,11 @@ func ParseFlags() {
|
||||
flag.Bool(constant.FlagVersionShort, false, "")
|
||||
flag.Bool(constant.FlagVersion, false, "")
|
||||
flag.Bool(constant.FlagDebug, false, "")
|
||||
flag.String(constant.FlagConfigFile, defaultConfigPath, "config file location used for the program")
|
||||
flag.String(constant.FlagConfigFile, defaultConfigPath, "config file location")
|
||||
flag.String(constant.FlagScopeEnable, "", "")
|
||||
flag.String(constant.FlagSingleUri, "", "")
|
||||
flag.String(constant.FlagEnv, defaultConfigEnv, "")
|
||||
flag.String("create", defaultConfigEnv, "used to create e.g. scope etc.")
|
||||
|
||||
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
|
||||
pflag.Parse()
|
||||
|
||||
Reference in New Issue
Block a user