A module which provides a way to specify descriptions and groups of short and long option names, together.
OptGroup | One group of options, e.g., both -h and --help, along with their shared description and properties. |
getopts | Parse command line args with the provided long format options. |
optflag | Create a long option that is optional and does not take an argument. |
optflagmulti | Create a long option that can occur more than once and does not take an argument. |
optflagopt | Create a long option that is optional and takes an optional argument. |
optmulti | Create a long option that is optional, takes an argument, and may occur multiple times. |
optopt | Create a long option that is optional and takes an argument. |
reqopt | Create a long option that is required and takes an argument. |
usage | Derive a usage message from a set of long options. |
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).