|
@@ -1,6 +1,6 @@
|
|
|
// -*- mode: cpp; mode: fold -*-
|
|
// -*- mode: cpp; mode: fold -*-
|
|
|
// Description /*{{{*/
|
|
// Description /*{{{*/
|
|
|
-// $Id: cmndline.cc,v 1.14 2002/11/11 06:58:55 doogie Exp $
|
|
|
|
|
|
|
+// $Id: cmndline.cc,v 1.15 2003/02/10 01:40:58 doogie Exp $
|
|
|
/* ######################################################################
|
|
/* ######################################################################
|
|
|
|
|
|
|
|
Command Line Class - Sophisticated command line parser
|
|
Command Line Class - Sophisticated command line parser
|
|
@@ -198,13 +198,13 @@ bool CommandLine::HandleOpt(int &I,int argc,const char *argv[],
|
|
|
const char *J;
|
|
const char *J;
|
|
|
for (J = Argument; *J != 0 && *J != '='; J++);
|
|
for (J = Argument; *J != 0 && *J != '='; J++);
|
|
|
if (*J == 0)
|
|
if (*J == 0)
|
|
|
- return _error->Error(_("Option %s: Configuration item sepecification must have an =<val>."),argv[I]);
|
|
|
|
|
|
|
+ return _error->Error(_("Option %s: Configuration item specification must have an =<val>."),argv[I]);
|
|
|
|
|
|
|
|
// = is trailing
|
|
// = is trailing
|
|
|
if (J[1] == 0)
|
|
if (J[1] == 0)
|
|
|
{
|
|
{
|
|
|
if (I+1 >= argc)
|
|
if (I+1 >= argc)
|
|
|
- return _error->Error(_("Option %s: Configuration item sepecification must have an =<val>."),argv[I]);
|
|
|
|
|
|
|
+ return _error->Error(_("Option %s: Configuration item specification must have an =<val>."),argv[I]);
|
|
|
Conf->Set(string(Argument,J-Argument),string(argv[I++ +1]));
|
|
Conf->Set(string(Argument,J-Argument),string(argv[I++ +1]));
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|