#[non_exhaustive]pub enum OptFlags {
OptionsEverywhere,
PrefixMatchLongOptions,
}Expand description
Flags for changing command-line parser’s behavior.
Usually used with OptSpecs::flag method. Variants of this enum
are general configuration flags that change command-line parser’s
behavior.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OptionsEverywhere
Accept command-line options and other arguments in mixed order in the command line. That is, options can come after non-option arguments.
This is not the default behavior. By default the first non-option argument in the command line stops option parsing and the rest of the command line is parsed as non-options (other arguments), even if they look like options.
PrefixMatchLongOptions
Long options don’t need to be written in full in the command line. They can be shortened as long as there are enough characters to find a unique prefix match. If there are more than one match the option given in the command line is classified as unknown.