diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:59 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:59 +0000 |
commit | e1b74f61dfb6980d643cb7c666c761ff3bda2f1e (patch) | |
tree | 1a2ce32d1bd25d0c0f2be05ad013306f64bb8b93 /apt-pkg/contrib/cmndline.h | |
parent | 08e8f724674eb96678dcabf856534c58f5c29996 (diff) |
Sync
Author: jgg
Date: 1998-09-26 05:34:18 GMT
Sync
Diffstat (limited to 'apt-pkg/contrib/cmndline.h')
-rw-r--r-- | apt-pkg/contrib/cmndline.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apt-pkg/contrib/cmndline.h b/apt-pkg/contrib/cmndline.h index 038f421e7..27f69729c 100644 --- a/apt-pkg/contrib/cmndline.h +++ b/apt-pkg/contrib/cmndline.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: cmndline.h,v 1.1 1998/09/22 05:30:26 jgg Exp $ +// $Id: cmndline.h,v 1.2 1998/09/26 05:34:25 jgg Exp $ /* ###################################################################### Command Line Class - Sophisticated command line parser @@ -67,15 +67,18 @@ class CommandLine IntLevel = (1 << 1), Boolean = (1 << 2), InvBoolean = (1 << 3), - ConfigFile = (1 << 4) | HasArg + ConfigFile = (1 << 4) | HasArg, + ArbItem = (1 << 5) | HasArg }; const char **FileList; bool Parse(int argc,const char **argv); void ShowHelp(); + unsigned int FileSize() const; CommandLine(Args *AList,Configuration *Conf); + ~CommandLine(); }; struct CommandLine::Args @@ -86,6 +89,7 @@ struct CommandLine::Args unsigned long Flags; inline bool end() {return ShortOpt == 0 && LongOpt == 0;}; + inline bool IsBoolean() {return Flags == 0 || (Flags & (Boolean|InvBoolean)) != 0;}; }; #endif |