Struct qt_core::q_command_line_option::Flag
source · pub struct Flag(/* private fields */);
Expand description
The Flags type is a typedef for QFlags<Flag>. It stores an OR combination of Flag values.
C++ enum: QCommandLineOption::Flag
.
The Flags type is a typedef for QFlags<Flag>. It stores an OR combination of Flag values.
See also QCommandLineOption::setFlags() and QCommandLineOption::flags().
Implementations§
source§impl Flag
impl Flag
sourcepub const HiddenFromHelp: Flag = _
pub const HiddenFromHelp: Flag = _
Hide this option in the user-visible help output. All options are visible by default. Setting this flag for a particular option makes it internal, i.e. not listed in the help output. (C++ enum variant: HiddenFromHelp = 1
)
sourcepub const ShortOptionStyle: Flag = _
pub const ShortOptionStyle: Flag = _
The option will always be understood as a short option, regardless of what was set by QCommandLineParser::setSingleDashWordOptionMode. This allows flags such as -DDEFINE=VALUE
or -I/include/path
to be interpreted as short flags even when the parser is in QCommandLineParser::ParseAsLongOptions mode. (C++ enum variant: ShortOptionStyle = 2
)