[−][src]Macro ezcli::flag
Command line argument flag for on/off state.
Uses std::env:args()
to determine the arguments
passed to the program. If there is an argument matching
the flag's name then this variable will be truthy.
use ezcli::flag; flag!(my_boolean);
In some case of not wanting to use the program's environment arguments using a slice is also possible.
use ezcli::flag; let args = ["--my_boolean"]; flag!(my_boolean, args);