add more information into GetPruningOptionsFromFlags
This commit is contained in:
parent
0027111db4
commit
3c262306fa
@ -5,7 +5,9 @@ import (
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
//GetPruningOptionsFromFlags parses start command flags and returns the correct PruningOptions.
|
||||
// GetPruningOptionsFromFlags parses start command flags and returns the correct PruningOptions.
|
||||
// flagPruning prevails over flagPruningKeepEvery and flagPruningSnapshotEvery.
|
||||
// Default option is PruneSyncable.
|
||||
func GetPruningOptionsFromFlags() store.PruningOptions {
|
||||
if viper.IsSet(flagPruning) {
|
||||
return store.NewPruningOptionsFromString(viper.GetString(flagPruning))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user