X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/6079b276a959086ff18302cab752b6d7cfe5ad9f..671a55ba455dcf4e5ce6d86b202761666f54d5c6:/cmdline/apt-config.cc diff --git a/cmdline/apt-config.cc b/cmdline/apt-config.cc index 47e37c2f7..8442161d3 100644 --- a/cmdline/apt-config.cc +++ b/cmdline/apt-config.cc @@ -76,30 +76,13 @@ static bool DoDump(CommandLine &CmdL) return true; } /*}}}*/ -bool ShowHelp(CommandLine &, aptDispatchWithHelp const * Cmds) /*{{{*/ +bool ShowHelp(CommandLine &) /*{{{*/ { - ioprintf(cout, "%s %s (%s)\n", PACKAGE, PACKAGE_VERSION, COMMON_ARCH); - if (_config->FindB("version") == true) - return true; - std::cout << _("Usage: apt-config [options] command\n" "\n" - "apt-config is a simple tool to read the APT config file\n") - << std::endl - << _("Commands:") << std::endl; - for (; Cmds->Handler != nullptr; ++Cmds) - { - if (Cmds->Help == nullptr) - continue; - std::cout << " " << Cmds->Match << " - " << Cmds->Help << std::endl; - } - - std::cout << std::endl << - _("Options:\n" - " -h This help text.\n" - " -c=? Read this configuration file\n" - " -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp\n"); + "apt-config is an interface to the configuration settings used by\n" + "all APT tools to be used mainly in debugging and shell scripting.\n"); return true; } /*}}}*/