X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/83d89a9f6a641adccce898eb0bc675d94bc46465..eec898ad83d383f27b94f747245fe82fe11949b0:/cmdline/apt-config.cc?ds=sidebyside diff --git a/cmdline/apt-config.cc b/cmdline/apt-config.cc index 81d49e5f3..3a2a4d9ca 100644 --- a/cmdline/apt-config.cc +++ b/cmdline/apt-config.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-config.cc,v 1.2 1998/11/27 01:52:57 jgg Exp $ +// $Id: apt-config.cc,v 1.4 1999/03/29 19:28:52 jgg Exp $ /* ###################################################################### APT Config - Program to manipulate APT configuration files @@ -47,6 +47,8 @@ int ShowHelp() { cout << PACKAGE << ' ' << VERSION << " for " << ARCHITECTURE << " compiled on " << __DATE__ << " " << __TIME__ << endl; + if (_config->FindB("version") == true) + return 100; cout << "Usage: apt-config [options] command" << endl; cout << endl; @@ -58,7 +60,7 @@ int ShowHelp() cout << "Options:" << endl; cout << " -h This help text." << endl; cout << " -c=? Read this configuration file" << endl; - cout << " -o=? Set an arbitary configuration option, ie -o dir::cache=/tmp" << endl; + cout << " -o=? Set an arbitary configuration option, eg -o dir::cache=/tmp" << endl; return 100; } /*}}}*/ @@ -67,6 +69,7 @@ int main(int argc,const char *argv[]) { CommandLine::Args Args[] = { {'h',"help","help",0}, + {'v',"version","version",0}, {'c',"config-file",0,CommandLine::ConfigFile}, {'o',"option",0,CommandLine::ArbItem}, {0,0,0,0}};