Made argument identifiers lowercase.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2019-08-06 19:02:22 +02:00
parent 85675c8b98
commit 1b0fd8cd75
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 7 additions and 7 deletions

View File

@ -60,7 +60,7 @@ int App::main(const std::vector<std::string> &args)
} }
if (_uri.empty() && _format == export_format::undefined) if (_uri.empty() && _format == export_format::undefined)
{ {
cerr << "Error: You have to specify either URI or --export.\n"; cerr << "Error: You have to specify either an URI or --export.\n";
return Application::EXIT_USAGE; return Application::EXIT_USAGE;
} }
} }

View File

@ -49,30 +49,30 @@ void App::defineOptions(OptionSet& options)
.callback(OptionCallback<App>(this, &App::handle_info))); .callback(OptionCallback<App>(this, &App::handle_info)));
options.addOption( options.addOption(
Option("tags", "t", "Add tags to URI, delimited by commas.") Option("tags", "t", "Add tags to URI, delimited by commas.")
.argument("Tags") .argument("tags")
.callback(OptionCallback<App>(this, &App::handle_options))); .callback(OptionCallback<App>(this, &App::handle_options)));
options.addOption( options.addOption(
Option("export", "e", "Export to format.") Option("export", "e", "Export to format.")
.argument("Format") .argument("format")
.callback(OptionCallback<App>(this, &App::handle_options))); .callback(OptionCallback<App>(this, &App::handle_options)));
options.addOption( options.addOption(
Option("file", "f", "Save output to file.") Option("file", "f", "Save output to file.")
.argument("File") .argument("file")
.callback(OptionCallback<App>(this, &App::handle_options))); .callback(OptionCallback<App>(this, &App::handle_options)));
options.addOption( options.addOption(
Option("time-span", "T", Option("time-span", "T",
"Only export entries between YYYY-MM-DD,YYYY-MM-DD.") "Only export entries between YYYY-MM-DD,YYYY-MM-DD.")
.argument("Times") .argument("times")
.callback(OptionCallback<App>(this, &App::handle_options))); .callback(OptionCallback<App>(this, &App::handle_options)));
options.addOption( options.addOption(
Option("search-tags", "s", Option("search-tags", "s",
"Search in tags. Format: tag1 AND tag2 OR tag3.") "Search in tags. Format: tag1 AND tag2 OR tag3.")
.argument("Expression") .argument("expression")
.callback(OptionCallback<App>(this, &App::handle_options))); .callback(OptionCallback<App>(this, &App::handle_options)));
options.addOption( options.addOption(
Option("search-all", "S", Option("search-all", "S",
"Search in tags, title, description and full text.") "Search in tags, title, description and full text.")
.argument("Expression") .argument("expression")
.callback(OptionCallback<App>(this, &App::handle_options))); .callback(OptionCallback<App>(this, &App::handle_options)));
options.addOption( options.addOption(
Option("regex", "r", "Use regular expression for search.")); Option("regex", "r", "Use regular expression for search."));