Reverted: reverted the changes for wrong arguments by alexey which were wrongly pushed to master

pull/1/head
Thyagarajan Balakrishnan 14 years ago
parent c923fb8163
commit bc80a26fca

@ -654,7 +654,7 @@ void Daemon::daemonize()
void Daemon::parseArgs(const ArgVect & args) void Daemon::parseArgs(const ArgVect & args)
{ {
for (ArgVect::const_iterator i(args.begin() + 1); i != args.end(); i++) for (ArgVect::const_iterator i(args.begin()); i != args.end(); i++)
{ {
if ((*i) == "--boot-mode" || (*i) == "-b") if ((*i) == "--boot-mode" || (*i) == "-b")
{ {
@ -673,11 +673,6 @@ void Daemon::parseArgs(const ArgVect & args)
{ {
usage(EXIT_SUCCESS); usage(EXIT_SUCCESS);
} }
else
{
if ((*i).find_first_not_of(' ') != string::npos)
usage(EXIT_FAILURE);
}
} }
} }

Loading…
Cancel
Save