cmd: use flags.Merge for grouping flags (#25392)

This commit is contained in:
rjl493456442
2022-07-25 12:07:44 +03:00
committed by GitHub
parent b2be5f956f
commit 1ed8b7d24f
7 changed files with 40 additions and 45 deletions
-9
View File
@@ -994,15 +994,6 @@ var (
}
)
// GroupFlags combines the given flag slices together and returns the merged one.
func GroupFlags(groups ...[]cli.Flag) []cli.Flag {
var ret []cli.Flag
for _, group := range groups {
ret = append(ret, group...)
}
return ret
}
// MakeDataDir retrieves the currently requested data directory, terminating
// if none (or the empty string) is specified. If the node is starting a testnet,
// then a subdirectory of the specified datadir will be used.