diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:33 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:33 +0000 |
commit | 04aa15a8300dd48b950a7a28178abeb96589fdb0 (patch) | |
tree | b0f94c49dc51164512c85f63fc6eef6fdf264441 /cmdline/apt-config.cc | |
parent | 7bf6fd0cf7dc9892a96331b9d936984387de4e53 (diff) | |
download | apt-04aa15a8300dd48b950a7a28178abeb96589fdb0.tar.gz |
Added --version and fixed clogging for -s
Author: jgg
Date: 1999-01-30 02:12:53 GMT
Added --version and fixed clogging for -s
Diffstat (limited to 'cmdline/apt-config.cc')
-rw-r--r-- | cmdline/apt-config.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmdline/apt-config.cc b/cmdline/apt-config.cc index 81d49e5f3..b1b134d97 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.3 1999/01/30 02:12:53 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; @@ -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}}; |