summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/cmndline.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:58:23 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:58:23 +0000
commit343bd48e61a8691fc4fdc15256d5d2522387ae23 (patch)
treea86aee86e307be0d09e68fd28774af2b5dbbec5b /apt-pkg/contrib/cmndline.cc
parent0b58fe86dceb237cb3821603ba1af3f26c5a26a8 (diff)
Fixed -- argument bug
Author: jgg Date: 2001-06-09 22:39:48 GMT Fixed -- argument bug
Diffstat (limited to 'apt-pkg/contrib/cmndline.cc')
-rw-r--r--apt-pkg/contrib/cmndline.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/apt-pkg/contrib/cmndline.cc b/apt-pkg/contrib/cmndline.cc
index ea15ae05d..4ff7716da 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.11 2001/02/20 07:03:17 jgg Exp $
+// $Id: cmndline.cc,v 1.12 2001/06/09 22:39:48 jgg Exp $
/* ######################################################################
Command Line Class - Sophisticated command line parser
@@ -58,7 +58,10 @@ bool CommandLine::Parse(int argc,const char **argv)
// Double dash signifies the end of option processing
if (*Opt == '-' && Opt[1] == 0)
+ {
+ I++;
break;
+ }
// Single dash is a short option
if (*Opt != '-')