|
Arkanjo 0.2
A tool for find code duplicated functions in codebases
|
Include dependency graph for parser_options.cpp:Go to the source code of this file.
Functions | |
| std::string | build_shortopts (const std::vector< CliOption > &options) |
| bool | parse_options (int argc, char *argv[], const std::vector< CliOption > &options, ParsedOptions &ctx_options) |
| Analyzes command-line arguments and populates ParsedOptions. | |
| std::string build_shortopts | ( | const std::vector< CliOption > & | options | ) |
Definition at line 26 of file parser_options.cpp.
| bool parse_options | ( | int | argc, |
| char * | argv[], | ||
| const std::vector< CliOption > & | options, | ||
| ParsedOptions & | ctx_options ) |
Analyzes command-line arguments and populates ParsedOptions.
It supports short (-c) and long (–config) options. Flags without arguments receive the value "true". Arguments that are not options are added to extra_args.
| argc | Number of arguments passed to the application. |
| argv | Vector of strings containing the arguments. |
| options | Array of CliOption containing the options. |
| ctx_options | Reference to ParsedOptions that will be filled in. |
Definition at line 45 of file parser_options.cpp.