helpRequested.

This commit is contained in:
Florian Pose 2008-07-21 22:06:33 +00:00
parent 994af957eb
commit 874bfee9da
1 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ vector<string> commandArgs;
static Master::Verbosity verbosity = Master::Normal;
string dataTypeStr;
bool force = false;
bool helpWanted = false;
bool helpRequested = false;
/*****************************************************************************/
@ -154,7 +154,7 @@ void getOptions(int argc, char **argv)
break;
case 'h':
helpWanted = true;
helpRequested = true;
break;
case '?':
@ -170,11 +170,11 @@ void getOptions(int argc, char **argv)
argCount = argc - optind;
if (!argCount) {
if (!helpWanted) {
if (!helpRequested) {
cerr << "Please specify a command!" << endl;
}
printUsage();
exit(!helpWanted);
exit(!helpRequested);
}
command = argv[optind];