Skip to content
Snippets Groups Projects
Commit 25e7c75d authored by Florian Pose's avatar Florian Pose
Browse files

helpRequested.

parent e94f1984
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ vector<string> commandArgs; ...@@ -27,7 +27,7 @@ vector<string> commandArgs;
static Master::Verbosity verbosity = Master::Normal; static Master::Verbosity verbosity = Master::Normal;
string dataTypeStr; string dataTypeStr;
bool force = false; bool force = false;
bool helpWanted = false; bool helpRequested = false;
/*****************************************************************************/ /*****************************************************************************/
...@@ -154,7 +154,7 @@ void getOptions(int argc, char **argv) ...@@ -154,7 +154,7 @@ void getOptions(int argc, char **argv)
break; break;
case 'h': case 'h':
helpWanted = true; helpRequested = true;
break; break;
case '?': case '?':
...@@ -170,11 +170,11 @@ void getOptions(int argc, char **argv) ...@@ -170,11 +170,11 @@ void getOptions(int argc, char **argv)
argCount = argc - optind; argCount = argc - optind;
if (!argCount) { if (!argCount) {
if (!helpWanted) { if (!helpRequested) {
cerr << "Please specify a command!" << endl; cerr << "Please specify a command!" << endl;
} }
printUsage(); printUsage();
exit(!helpWanted); exit(!helpRequested);
} }
command = argv[optind]; command = argv[optind];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment