diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:59 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:59 +0000 |
commit | 314037ba995328f4ac1026bbfb2125af6224248c (patch) | |
tree | 805bd02de46b263652ac8966645724e6de020d21 /cmdline/apt-config.cc | |
parent | 8195ae461bbe065c5d81f0e95b7f834a2549db39 (diff) | |
download | apt-314037ba995328f4ac1026bbfb2125af6224248c.tar.gz |
Fixed list notation doc bug and 'b' vs 'B'
Author: jgg
Date: 1999-06-06 05:52:37 GMT
Fixed list notation doc bug and 'b' vs 'B'
Diffstat (limited to 'cmdline/apt-config.cc')
-rw-r--r-- | cmdline/apt-config.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/cmdline/apt-config.cc b/cmdline/apt-config.cc index c626a1ee0..3de59aee5 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.5 1999/05/23 05:45:12 jgg Exp $ +// $Id: apt-config.cc,v 1.6 1999/06/06 05:52:37 jgg Exp $ /* ###################################################################### APT Config - Program to manipulate APT configuration files @@ -51,6 +51,15 @@ bool DoShell(CommandLine &CmdL) return true; } /*}}}*/ +// DoDump - Dump the configuration space /*{{{*/ +// --------------------------------------------------------------------- +/* */ +bool DoDump(CommandLine &CmdL) +{ + _config->Dump(); + return true; +} + /*}}}*/ // ShowHelp - Show the help screen /*{{{*/ // --------------------------------------------------------------------- /* */ @@ -67,6 +76,7 @@ int ShowHelp() cout << endl; cout << "Commands:" << endl; cout << " shell - Shell mode" << endl; + cout << " dump - Show the configuration" << endl; cout << endl; cout << "Options:" << endl; cout << " -h This help text." << endl; @@ -85,6 +95,7 @@ int main(int argc,const char *argv[]) {'o',"option",0,CommandLine::ArbItem}, {0,0,0,0}}; CommandLine::Dispatch Cmds[] = {{"shell",&DoShell}, + {"dump",&DoDump}, {0,0}}; // Parse the command line and initialize the package library |