summaryrefslogtreecommitdiff
path: root/parse.go
diff options
context:
space:
mode:
authorAlex Flint <[email protected]>2021-04-19 13:25:11 -0700
committerAlex Flint <[email protected]>2021-04-19 13:25:11 -0700
commitccf882dca7c9ccae71f6806b0bb9afcb282e1ec2 (patch)
tree4fe6280f94e57c4ea0b392491c575ffcee501dd5 /parse.go
parent9949860eb3d60d374df3a47ebc0a22ca55bba399 (diff)
finish adding comments to spec
Diffstat (limited to 'parse.go')
-rw-r--r--parse.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/parse.go b/parse.go
index e05d1c3..d357d5c 100644
--- a/parse.go
+++ b/parse.go
@@ -53,11 +53,11 @@ type spec struct {
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
positional bool // if true, this option will be looked for in the positional flags
- separate bool // if true,
- help string
- env string
- defaultVal string // default value for this option
- placeholder string // name of the data in help
+ separate bool // if true, each slice and map entry will have its own --flag
+ help string // the help text for this option
+ env string // the name of the environment variable for this option, or empty for none
+ defaultVal string // default value for this option
+ placeholder string // name of the data in help
}
// command represents a named subcommand, or the top-level command