X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/d04e44ac8177fc5b70ae0189bb5e437c2502f910..7d19ee92f2368a40e739cb27d22d6d28f37ebf45:/cmdline/apt-config.cc?ds=sidebyside diff --git a/cmdline/apt-config.cc b/cmdline/apt-config.cc index c364b8cdf..69485de90 100644 --- a/cmdline/apt-config.cc +++ b/cmdline/apt-config.cc @@ -76,7 +76,7 @@ static bool DoDump(CommandLine &CmdL) return true; } /*}}}*/ -bool ShowHelp(CommandLine &) /*{{{*/ +static bool ShowHelp(CommandLine &) /*{{{*/ { std::cout << _("Usage: apt-config [options] command\n" @@ -86,7 +86,7 @@ bool ShowHelp(CommandLine &) /*{{{*/ return true; } /*}}}*/ -std::vector GetCommands() /*{{{*/ +static std::vector GetCommands() /*{{{*/ { return { {"shell", &DoShell, _("get configuration values via shell evaluation")}, @@ -101,7 +101,7 @@ int main(int argc,const char *argv[]) /*{{{*/ // Parse the command line and initialize the package library CommandLine CmdL; - auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_CONFIG, &_config, &_system, argc, argv); + auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_CONFIG, &_config, &_system, argc, argv, &ShowHelp, &GetCommands); std::vector const langs = APT::Configuration::getLanguages(true); _config->Clear("Acquire::Languages");