X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/21ae3cae55e3537db56ae7a77748cacb37b99db6..43981212ff994ce2d51bf3038b8057ab1b417619:/cmdline/apt-cache.cc diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc index 83fe53dfe..26d96c860 100644 --- a/cmdline/apt-cache.cc +++ b/cmdline/apt-cache.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-cache.cc,v 1.21 1998/12/31 01:32:20 jgg Exp $ +// $Id: apt-cache.cc,v 1.24 1999/02/08 07:54:58 jgg Exp $ /* ###################################################################### apt-cache - Manages the cache files @@ -22,10 +22,11 @@ #include #include #include -#include +#include +#include #include -#include +#include /*}}}*/ pkgCache *GCache = 0; @@ -447,6 +448,8 @@ bool ShowHelp(CommandLine &Cmd) { cout << PACKAGE << ' ' << VERSION << " for " << ARCHITECTURE << " compiled on " << __DATE__ << " " << __TIME__ << endl; + if (_config->FindB("version") == true) + return 100; cout << "Usage: apt-cache [options] command" << endl; cout << " apt-cache [options] add file1 [file1 ...]" << endl; @@ -492,6 +495,7 @@ int main(int argc,const char *argv[]) { CommandLine::Args Args[] = { {'h',"help","help",0}, + {'v',"version","version",0}, {'p',"pkg-cache","Dir::Cache::pkgcache",CommandLine::HasArg}, {'s',"src-cache","Dir::Cache::srcpkgcache",CommandLine::HasArg}, {'q',"quiet","quiet",CommandLine::IntLevel},