X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/6079b276a959086ff18302cab752b6d7cfe5ad9f..a5fc9be36211a290a7abc3ca2a8bf98943bc1f57:/cmdline/apt-helper.cc diff --git a/cmdline/apt-helper.cc b/cmdline/apt-helper.cc index b0c1ddacf..176a67e03 100644 --- a/cmdline/apt-helper.cc +++ b/cmdline/apt-helper.cc @@ -105,30 +105,14 @@ static bool DoSrvLookup(CommandLine &CmdL) /*{{{*/ return true; } /*}}}*/ -bool ShowHelp(CommandLine &, aptDispatchWithHelp const * Cmds) /*{{{*/ +bool ShowHelp(CommandLine &) /*{{{*/ { - ioprintf(std::cout, "%s %s (%s)\n", PACKAGE, PACKAGE_VERSION, COMMON_ARCH); - - if (_config->FindB("version") == true) - return true; - std::cout << - _("Usage: apt-helper [options] command\n" - " apt-helper [options] download-file uri target-path\n" - "\n" - "apt-helper is a internal helper for apt\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 << - _("This APT helper has Super Meep Powers.") << std::endl; + _("Usage: apt-helper [options] command\n" + " apt-helper [options] download-file uri target-path\n" + "\n" + "apt-helper bundles a variety of commands for shell scripts to use\n" + "e.g. the same proxy configuration or acquire system as APT would.\n"); return true; } /*}}}*/