X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/8561c2fedae26aecd8ba758a5e7ef686ba1243f3..dd592790c8f1be4925f74266742c163516ab80c7:/cmdline/apt.cc diff --git a/cmdline/apt.cc b/cmdline/apt.cc index 761ad60db..3c3d3ca1c 100644 --- a/cmdline/apt.cc +++ b/cmdline/apt.cc @@ -40,7 +40,7 @@ #include /*}}}*/ -bool ShowHelp(CommandLine &) /*{{{*/ +static bool ShowHelp(CommandLine &) /*{{{*/ { std::cout << _("Usage: apt [options] command\n" @@ -53,7 +53,7 @@ bool ShowHelp(CommandLine &) /*{{{*/ return true; } /*}}}*/ -std::vector GetCommands() /*{{{*/ +static std::vector GetCommands() /*{{{*/ { return { // query @@ -100,7 +100,7 @@ int main(int argc, const char *argv[]) /*{{{*/ InitLocale(); CommandLine CmdL; - auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT, &_config, &_system, argc, argv); + auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT, &_config, &_system, argc, argv, &ShowHelp, &GetCommands); int const quiet = _config->FindI("quiet", 0); if (quiet == 2)