From b0b4efb96c3fad90bf978d61b230501bcdadff3d Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:52:13 +0000 Subject: Release support Author: jgg Date: 1998-12-14 02:23:46 GMT Release support --- apt-pkg/contrib/cmndline.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'apt-pkg/contrib/cmndline.cc') 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; } /*}}}*/ -- cgit v1.2.3