Skip to content

Commit

Permalink
Changes from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
dearchap committed Aug 15, 2022
1 parent b80ff3d commit af3b50c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions flag.go
Expand Up @@ -329,12 +329,8 @@ func stringifySliceFlag(usage string, names, defaultVals []string) string {
}

usageWithDefault := strings.TrimSpace(fmt.Sprintf("%s%s", usage, defaultVal))
/*multiInputString := fmt.Sprintf("[ %s ]", usage)
if usageWithDefault != "" {
multiInputString = "\t" + multiInputString
}*/
pn := prefixedNames(names, placeholder)
return fmt.Sprintf("%s [ %s ]\t%s%s", pn, pn, usageWithDefault, "")
return fmt.Sprintf("%s [ %s ]\t%s", pn, pn, usageWithDefault)
}

func hasFlag(flags []Flag, fl Flag) bool {
Expand Down

0 comments on commit af3b50c

Please sign in to comment.