add update integration with the help output

This commit is contained in:
Lynn Cyrin
2019-07-13 03:44:39 -07:00
parent 550ed20ea4
commit 746866c10d
3 changed files with 38 additions and 24 deletions

View File

@@ -288,13 +288,6 @@ func normalizeFlags(flags []Flag, set *flag.FlagSet) error {
}
func checkRequiredFlags(flags []Flag, set *flag.FlagSet) error {
// If the help flag is included then none of the other flags are required.
for _, f := range flags {
if f.GetName() == "help" {
return nil
}
}
visited := make(map[string]bool)
set.Visit(func(f *flag.Flag) {
visited[f.Name] = true