summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/cmndline.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:53:44 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:53:44 +0000
commit9435cc9b1f36b621948ff26364ccd65b028b70a6 (patch)
treec72665f3ff11b635a6e7f8e3ddeff10fc4056ac3 /apt-pkg/contrib/cmndline.cc
parent8229745799aeb137eb18144eda7a7a33ca11a933 (diff)
Changed handling of the -q option
Author: jgg Date: 1999-05-14 02:57:48 GMT Changed handling of the -q option
Diffstat (limited to 'apt-pkg/contrib/cmndline.cc')
-rw-r--r--apt-pkg/contrib/cmndline.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/cmndline.cc b/apt-pkg/contrib/cmndline.cc
index 3c3717c99..36039c3b8 100644
--- a/apt-pkg/contrib/cmndline.cc
+++ b/apt-pkg/contrib/cmndline.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: cmndline.cc,v 1.9 1999/01/27 02:48:52 jgg Exp $
+// $Id: cmndline.cc,v 1.10 1999/05/14 02:57:48 jgg Exp $
/* ######################################################################
Command Line Class - Sophisticated command line parser
@@ -228,7 +228,7 @@ bool CommandLine::HandleOpt(int &I,int argc,const char *argv[],
return _error->Error("Option %s requires an integer argument, not '%s'",argv[I],Argument);
// Conversion was ok, set the value and return
- if (EndPtr != Argument)
+ if (EndPtr != 0 && EndPtr != Argument && *EndPtr == 0)
{
Conf->Set(A->ConfName,Value);
Opt += strlen(Opt);