|
| Argz< String > & | addOptionDouble (const int &code, const String &value, const String &description) |
| | Register a flag-only long option (e.g.
|
| Argz< String > & | addOptionDoubleValue (const int &code, const String &value, const String &description) |
| | Register a long option that requires a value argument (e.g.
|
| Argz< String > & | addOptionSingle (const int &c, const String &description) |
| | Register a flag-only short option (e.g.
|
| Argz< String > & | addOptionSingleValue (const int &c, const String &description) |
| | Register a short option that requires a value argument (e.g.
|
| | Argz ()=default |
| | Argz (Argz< String > &&a) |
| | Argz (const Argz< String > &a) |
| | Argz (int argc, char **argv) |
| | Construct and immediately ingest argv.
|
| const size_t | count () const |
| template<typename T> |
| void | help (T &cout) |
| | Print all registered options to any ostream-like object.
|
| Argz< String > & | initArgs (int argc, char **argv) |
| | Ingest argc/argv, converting to the target String type.
|
| int | lookUpCode (const String &value) const |
| | Look up the integer code registered for a long option name.
|
| Argz< String > & | operator= (Argz< String > &&a) |
| Argz< String > & | operator= (const Argz< String > &a) |
| int | proc (Argument< String > &a) |
| | Advance the cursor and parse the next argument.
|
| void | reset () |
| | Reset the internal parse cursor to the beginning of argv.
|
| | ~Argz ()=default |
Template command-line argument parser.
- Template Parameters
-
| String | String type satisfying StringType (usually std::string or std::wstring). |
Options are registered with addOption*() before parsing. Call proc() in a loop until it returns -1 to iterate over all arguments.
Definition at line 197 of file argz.hpp.