diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:13 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:13 +0000 |
commit | b0b4efb96c3fad90bf978d61b230501bcdadff3d (patch) | |
tree | 63c6013b85da3fe3835f1ef37466c91279fa9c47 /apt-pkg/contrib/cmndline.cc | |
parent | 30456e14d97be16516a5a84ce9bf9acba143da87 (diff) |
Release support
Author: jgg
Date: 1998-12-14 02:23:46 GMT
Release support
Diffstat (limited to 'apt-pkg/contrib/cmndline.cc')
-rw-r--r-- | apt-pkg/contrib/cmndline.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apt-pkg/contrib/cmndline.cc b/apt-pkg/contrib/cmndline.cc index 858a5300a..629b8e9e5 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.6 1998/11/25 23:54:22 jgg Exp $ +// $Id: cmndline.cc,v 1.7 1998/12/14 02:23:47 jgg Exp $ /* ###################################################################### Command Line Class - Sophisticated command line parser @@ -316,7 +316,7 @@ unsigned int CommandLine::FileSize() const // CommandLine::DispatchArg - Do something with the first arg /*{{{*/ // --------------------------------------------------------------------- /* */ -bool CommandLine::DispatchArg(Dispatch *Map) +bool CommandLine::DispatchArg(Dispatch *Map,bool NoMatch) { int I; for (I = 0; Map[I].Match != 0; I++) @@ -332,7 +332,11 @@ bool CommandLine::DispatchArg(Dispatch *Map) // No matching name if (Map[I].Match == 0) - _error->Error("Invalid operation %s",FileList[0]); + { + if (NoMatch == true) + _error->Error("Invalid operation %s",FileList[0]); + } + return false; } /*}}}*/ |