Macro gong::gong_option_set_fixed
source · macro_rules! gong_option_set_fixed {
( $long:tt, $short:tt, $mode:expr, $abbr:expr ) => { ... };
( $long:tt, $short:tt ) => { ... };
}
Expand description
Construct an OptionSet
Takes:
- An array of long options
- An array of short options
- Mode
- Abbreviation support state
The last two can be left off if both defaults.
Example:
// Without modes, empty option lists
let _ = gong_option_set_fixed!([], []);
// With modes, empty option lists
let _ = gong_option_set_fixed!([], [], gong::options::OptionsMode::Standard, true);