Prompt.Router.ArgSpec (prompt v0.12.0)
View SourceOne argument of a router command, built by Prompt.Router.arg/3 or
Prompt.Router.positional/3. Read it in an override of
Prompt.Router.command_help/1; do not build it by hand.
Fields:
:name- the atom key the parsed value is stored under. A flag is typed with dashes, so:dry_runis--dry-run.:type-:boolean,:string,:integer, or:float.:kind-:flagfor--nameoptions,:positionalfor bare values.:short- the one letter alias of a flag, ornil.:default- the value used when a flag is not given, ornil.:required- whether the argument must be given.:in- the allowed values, ornilfor any value.:multiple- whether a positional collects all remaining values.:doc- the description shown in usage, ornil.