X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/8561c2fedae26aecd8ba758a5e7ef686ba1243f3..503c7d594125f963b92047ad2d9d0644f39136c7:/cmdline/apt.cc?ds=sidebyside diff --git a/cmdline/apt.cc b/cmdline/apt.cc index 761ad60db..4b266bcbe 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 @@ -97,10 +97,8 @@ std::vector GetCommands() /*{{{*/ /*}}}*/ 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)