From 314037ba995328f4ac1026bbfb2125af6224248c Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:53:59 +0000 Subject: 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' --- cmdline/apt-config.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'cmdline/apt-config.cc') 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 @@ -48,6 +48,15 @@ bool DoShell(CommandLine &CmdL) cout << *I << "=\"" << _config->Find(I[1]) << '"' << endl; } + return true; +} + /*}}}*/ +// DoDump - Dump the configuration space /*{{{*/ +// --------------------------------------------------------------------- +/* */ +bool DoDump(CommandLine &CmdL) +{ + _config->Dump(); return true; } /*}}}*/ @@ -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 -- cgit v1.2.3