1
0
Fork 0

issue #1360: added extra help for foxx-manager

This commit is contained in:
Jan Steemann 2015-06-05 09:43:17 +02:00
parent 9af22b9839
commit 81c1d62b0a
1 changed files with 10 additions and 1 deletions

View File

@ -395,10 +395,19 @@ void ArangoClient::parse (ProgramOptions& options,
if (! help.empty()) {
if (! example.empty()) {
cout << "USAGE: " << argv[0] << " " << example << endl << endl;
cout << "USAGE: " << argv[0] << " " << example << endl << endl;
}
cout << description.usage(help) << endl;
{
// check if we are the foxx-manager
std::string const progname(argv[0]);
std::string const compare("foxx-manager");
if (progname.size() >= compare.size() && progname.substr(progname.size() - compare.size(), compare.size()) == compare) {
cout << "Use " << argv[0] << " help to get an overview of the actions specific to foxx-manager." << endl << endl;
}
}
// --help always returns success
TRI_EXIT_FUNCTION(EXIT_SUCCESS, nullptr);
}