Main function to parse arguments folly::settings. This function parses command line arguments into folly::settings. It moves all positional, --help, not recognized flags and their values to the end of the argv array. It stops parsing arguments after '--' is encoutered.
Declared in <folly/settings/CommandLineParser.h>
ArgParsingResult
parseCommandLineArguments(
int& argc,
char**& argv,
std::string_view project = "",
Snapshot* snapshot = nullptr,
SettingsAccessorProxy::SettingAliases const& aliases = {});
true if help flag was encountered
| Name | Description |
|---|---|
| argc | number of arguments in command line |
| argv | vector of command line arguments |
| snapshot | folly::settings snapshot. |
| project | default project name for CLI parsing (default: "") |
| aliases | map of aliases for registered settings |