Sfoglia il codice sorgente

dselect: On --help print action names from the menuentries table

This unmarks those strings for translation, as they should not get
translated anyway, makes sure all actions will always be listed and
those will not get out of sync.
Guillem Jover 14 anni fa
parent
commit
c57ae609e5
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      dselect/main.cc

+ 4 - 4
dselect/main.cc

@@ -195,10 +195,10 @@ usage(const struct cmdinfo *ci, const char *value)
 "  --version                  Show the version.\n"
 "\n"));
 
-  printf(_(
-"Actions:\n"
-"  access update select install config remove quit\n"
-"\n"));
+  printf(_("Actions:\n"));
+  for (i = 0; menuentries[i].command; i++)
+    printf("  %s", menuentries[i].command);
+  fputs("\n\n", stdout);
 
   printf(_("Screenparts:\n"));
   for (i=0; screenparttable[i].name; i++)