]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt.cc
report all instead of first error up the acquire chain
[apt.git] / cmdline / apt.cc
index 64d374e1f268fe076157ddb6584e068a73e4555b..4b266bcbe94b61e496dd76cb19473256a76cd1bd 100644 (file)
@@ -40,7 +40,7 @@
 #include <apti18n.h>
                                                                        /*}}}*/
 
-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<aptDispatchWithHelp> GetCommands()                         /*{{{*/
+static std::vector<aptDispatchWithHelp> GetCommands()                  /*{{{*/
 {
    return {
       // query
@@ -97,8 +97,6 @@ std::vector<aptDispatchWithHelp> GetCommands()                                /*{{{*/
                                                                        /*}}}*/
 int main(int argc, const char *argv[])                                 /*{{{*/
 {
-   InitLocale();
-
    CommandLine CmdL;
    auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT, &_config, &_system, argc, argv, &ShowHelp, &GetCommands);