X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/a7e66b170369fe1e1e7fdd2c3abd8c85e9b15bf9..65a1e968442361247b646dc61843f841235114e0:/cmdline/apt-cache.cc diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc index 6bcb133cd..cf1240bc6 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.20 1998/12/14 03:39:15 jgg Exp $ +// $Id: apt-cache.cc,v 1.23 1999/01/30 02:12:53 jgg Exp $ /* ###################################################################### apt-cache - Manages the cache files @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include @@ -447,6 +447,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; @@ -474,7 +476,7 @@ bool ShowHelp(CommandLine &Cmd) cout << " -i Show only important deps for the unmet command." << endl; cout << " -c=? Read this configuration file" << endl; cout << " -o=? Set an arbitary configuration option, ie -o dir::cache=/tmp" << endl; - cout << "See the apt-cache(8) and apt.conf(8) manual pages for more information." << endl; + cout << "See the apt-cache(8) and apt.conf(5) manual pages for more information." << endl; return 100; } /*}}}*/ @@ -492,6 +494,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},