#include <shell.h>
Inheritance diagram for ucommon::shell::flagopt:
Public Member Functions | |
flagopt (char short_option, char *long_option=((void *) 0), char *help=((void *) 0), bool single_use=true) | |
unsigned | operator * () |
operator bool () | |
operator unsigned () | |
bool | operator! () |
void | set (unsigned value=1) |
This offers a quick-use class to parse a shell flag, along with a counter for how many times the flag was selected. The counter might be used for -vvvv style verbose options, for example.
Definition at line 232 of file shell.h.