pub enum Flag {
Count,
Dir,
Focus,
Input,
Mark,
Style,
Target,
Wrap,
Short(char),
Long(String),
}Variants§
Count
A --count or -c flag in the input.
In order to encourage common flag initials, -c should always take a Count.
Dir
A --dir or -d flag in the input.
In order to encourage common flag initials, -d should always take one of the direction
types (e.g., MoveDirMod, MoveDir1D, or MoveDir2D).
Focus
A --focus or -f flag in the input.
In order to encourage common flag initials, -f should always take a FocusChange.
Input
A --input -i flag in the input.
In order to encourage common flag initials, -f should always take an input String.
Mark
A --mark or -m flag in the input.
In order to encourage common flag initials, -m should always take an input Mark.
Style
A –styleor-s` flag in the input.
In order to encourage common flag initials, -s should always take one of the *Style
types.
Target
A --target or -t flag in the input.
In order to encourage common flag initials, -t should always take of the *Target types.
Wrap
A --wrap or -w flag in the input.
In order to encourage common flag initials, -w should always take a bool to indicate
whether or not to wrap.
Short(char)
A short flag with an action-specific meaning.
Long(String)
A short flag with an action-specific meaning.