]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-extracttemplates.cc
test: use our special downloaded dir for 'source' result
[apt.git] / cmdline / apt-extracttemplates.cc
index 0e60ff5fb8335a5d4b1f8e3f83e42da3eb6e00c6..8f77425e4f7966af07bdf77990d9a6fcd5c98aba 100644 (file)
@@ -215,7 +215,7 @@ bool DebFile::ParseInfo()
        return true;
 }
                                                                        /*}}}*/
-bool ShowHelp(CommandLine &)                                           /*{{{*/
+static bool ShowHelp(CommandLine &)                                    /*{{{*/
 {
        cout <<
                _("Usage: apt-extracttemplates file1 [file2 ...]\n"
@@ -330,7 +330,7 @@ static bool Go(CommandLine &CmdL)
        return !_error->PendingError();
 }
                                                                        /*}}}*/
-std::vector<aptDispatchWithHelp> GetCommands()                         /*{{{*/
+static std::vector<aptDispatchWithHelp> GetCommands()                  /*{{{*/
 {
    return {
        {nullptr, nullptr, nullptr}
@@ -342,7 +342,7 @@ int main(int argc, const char **argv)                                       /*{{{*/
        InitLocale();
 
        CommandLine CmdL;
-       auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_EXTRACTTEMPLATES, &_config, &_system, argc, argv);
+       auto const Cmds = ParseCommandLine(CmdL, APT_CMD::APT_EXTRACTTEMPLATES, &_config, &_system, argc, argv, &ShowHelp, &GetCommands);
 
        Go(CmdL);