ing
This commit is contained in:
parent
3d2fd3d24e
commit
1f4e7faac2
|
@ -8,14 +8,14 @@ const (
|
||||||
FlagPidFilePathName = "pid-path"
|
FlagPidFilePathName = "pid-path"
|
||||||
)
|
)
|
||||||
|
|
||||||
func FlagConfigDir() *string {
|
func FlagConfigDir(defaultValue string) *string {
|
||||||
return flag.String(FlagConfigDirName, "./config.json", "The directory path of config")
|
return flag.String(FlagConfigDirName, defaultValue, "The directory path of config")
|
||||||
}
|
}
|
||||||
|
|
||||||
func FlagLogConfigFilePath() *string {
|
func FlagLogConfigFilePath(defaultValue string) *string {
|
||||||
return flag.String(FlagLogConfigFilePathName, "", "The file path of logging config")
|
return flag.String(FlagLogConfigFilePathName, defaultValue, "The file path of logging config")
|
||||||
}
|
}
|
||||||
|
|
||||||
func FlagPidFilePath() *string {
|
func FlagPidFilePath(defaultValue string) *string {
|
||||||
return flag.String(FlagPidFilePathName, "./pid.pid", "The file path of pid")
|
return flag.String(FlagPidFilePathName, defaultValue, "The file path of pid")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user