finish adding comments to spec
This commit is contained in:
parent
9949860eb3
commit
ccf882dca7
10
parse.go
10
parse.go
|
@ -53,11 +53,11 @@ type spec struct {
|
||||||
cardinality cardinality // determines how many tokens will be present (possible values: zero, one, multiple)
|
cardinality cardinality // determines how many tokens will be present (possible values: zero, one, multiple)
|
||||||
required bool // if true, this option must be present on the command line
|
required bool // if true, this option must be present on the command line
|
||||||
positional bool // if true, this option will be looked for in the positional flags
|
positional bool // if true, this option will be looked for in the positional flags
|
||||||
separate bool // if true,
|
separate bool // if true, each slice and map entry will have its own --flag
|
||||||
help string
|
help string // the help text for this option
|
||||||
env string
|
env string // the name of the environment variable for this option, or empty for none
|
||||||
defaultVal string // default value for this option
|
defaultVal string // default value for this option
|
||||||
placeholder string // name of the data in help
|
placeholder string // name of the data in help
|
||||||
}
|
}
|
||||||
|
|
||||||
// command represents a named subcommand, or the top-level command
|
// command represents a named subcommand, or the top-level command
|
||||||
|
|
Loading…
Reference in New Issue