Skip to content

Commit

Permalink
chore: update the godoc comments for RegisterNoableBool and RegisterN…
Browse files Browse the repository at this point in the history
…oableBoolP (#297)
  • Loading branch information
cgrindel authored Oct 8, 2022
1 parent 1bee405 commit 6154639
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/aspect/root/flags/noable_bool.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ const (
BoolFlag0 = "0"
)

// RegisterNoableBool registers a boolean flag that supports Bazel option parsing.
func RegisterNoableBool(flags *pflag.FlagSet, name string, value bool, usage string) *bool {
return RegisterNoableBoolP(flags, name, "", value, usage)
}

// Register a boolean flag that supports Bazel option parsing.
// RegisterNoableBoolP registers a boolean flag that supports Bazel option parsing with a shorthand.
// https://bazel.build/reference/command-line-reference#option-syntax
//
// This implementation normalizes any user-provided values before processing. Hence,
Expand Down

0 comments on commit 6154639

Please sign in to comment.