add godoc into GetPruningOptionsFromFlags

This commit is contained in:
Jonathan Gimeno 2020-02-27 16:07:24 +01:00
parent 9aeefa77d3
commit 0c3117b3c7

View File

@ -5,6 +5,7 @@ import (
"github.com/spf13/viper"
)
//GetPruningOptionsFromFlags parses start command flags and returns the correct PruningOptions.
func GetPruningOptionsFromFlags() store.PruningOptions {
if viper.IsSet(flagPruning) {
return store.NewPruningOptionsFromString(viper.GetString(flagPruning))