]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-mark.cc
deal with --version more centrally
[apt.git] / cmdline / apt-mark.cc
index d02e80beb44a4b50f6cdc9bae5fd844c0b761000..b06fcc0ccbeef13b0307ea6b93271120f719fb56 100644 (file)
@@ -282,23 +282,13 @@ static bool ShowSelection(CommandLine &CmdL)                              /*{{{*/
                                                                        /*}}}*/
 bool ShowHelp(CommandLine &, aptDispatchWithHelp const * Cmds)         /*{{{*/
 {
                                                                        /*}}}*/
 bool ShowHelp(CommandLine &, aptDispatchWithHelp const * Cmds)         /*{{{*/
 {
-   ioprintf(std::cout, "%s %s (%s)\n", PACKAGE, PACKAGE_VERSION, COMMON_ARCH);
-
    std::cout <<
     _("Usage: apt-mark [options] {auto|manual} pkg1 [pkg2 ...]\n"
       "\n"
       "apt-mark is a simple command line interface for marking packages\n"
       "as manually or automatically installed. It can also list marks.\n")
    std::cout <<
     _("Usage: apt-mark [options] {auto|manual} pkg1 [pkg2 ...]\n"
       "\n"
       "apt-mark is a simple command line interface for marking packages\n"
       "as manually or automatically installed. It can also list marks.\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::endl;
+   ShowHelpListCommands(Cmds);
    std::cout << std::endl
    << _("Options:\n"
       "  -h  This help text.\n"
    std::cout << std::endl
    << _("Options:\n"
       "  -h  This help text.\n"