From 81c1d62b0afaf6a72e2d9c85f284c3920d6f70d3 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Fri, 5 Jun 2015 09:43:17 +0200 Subject: [PATCH] issue #1360: added extra help for foxx-manager --- arangosh/ArangoShell/ArangoClient.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arangosh/ArangoShell/ArangoClient.cpp b/arangosh/ArangoShell/ArangoClient.cpp index 5d0bb98721..4a0c1513c8 100644 --- a/arangosh/ArangoShell/ArangoClient.cpp +++ b/arangosh/ArangoShell/ArangoClient.cpp @@ -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); }