mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-24 11:09:12 +08:00
adjust help message
This commit is contained in:
parent
c0842fe99f
commit
40ff30b83f
@ -35,7 +35,7 @@ func init() {
|
|||||||
cmdFilerMetaBackup.Run = runFilerMetaBackup // break init cycle
|
cmdFilerMetaBackup.Run = runFilerMetaBackup // break init cycle
|
||||||
metaBackup.filerAddress = cmdFilerMetaBackup.Flag.String("filer", "localhost:8888", "filer hostname:port")
|
metaBackup.filerAddress = cmdFilerMetaBackup.Flag.String("filer", "localhost:8888", "filer hostname:port")
|
||||||
metaBackup.filerDirectory = cmdFilerMetaBackup.Flag.String("filerDir", "/", "a folder on the filer")
|
metaBackup.filerDirectory = cmdFilerMetaBackup.Flag.String("filerDir", "/", "a folder on the filer")
|
||||||
metaBackup.restart = cmdFilerMetaBackup.Flag.Bool("restart", false, "copy the full metadata snapshot before async continuous backup")
|
metaBackup.restart = cmdFilerMetaBackup.Flag.Bool("restart", false, "copy the full metadata before async incremental backup")
|
||||||
metaBackup.backupFilerConfig = cmdFilerMetaBackup.Flag.String("config", "", "path to filer.toml specifying backup filer store")
|
metaBackup.backupFilerConfig = cmdFilerMetaBackup.Flag.String("config", "", "path to filer.toml specifying backup filer store")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -886,7 +886,7 @@ func (f *FlagSet) parseOne() (bool, error) {
|
|||||||
// The return value will be ErrHelp if -help or -h were set but not defined.
|
// The return value will be ErrHelp if -help or -h were set but not defined.
|
||||||
func (f *FlagSet) Parse(arguments []string) error {
|
func (f *FlagSet) Parse(arguments []string) error {
|
||||||
if _, ok := f.formal[DefaultConfigFlagName]; !ok {
|
if _, ok := f.formal[DefaultConfigFlagName]; !ok {
|
||||||
f.String(DefaultConfigFlagName, "", "file with command line options with each line in optionName=optionValue format")
|
f.String(DefaultConfigFlagName, "", "a file of command line options, each line in optionName=optionValue format")
|
||||||
}
|
}
|
||||||
|
|
||||||
f.parsed = true
|
f.parsed = true
|
||||||
|
Loading…
Reference in New Issue
Block a user