Parcourir la source

Fix help -ah to show nbd-client and nbd-server instead of "see hidden_alias".

Rob Landley il y a 2 ans
Parent
commit
0ec3ae72ad
2 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 1
      main.c
  2. 0 1
      www/git/index.html

+ 1 - 1
main.c

@@ -93,7 +93,7 @@ void show_help(FILE *out, int full)
       // If it's an alias, restart search for real name
       if (*s != 255) break;
       i = toy_find(++s)-toy_list;
-      if (full&4) {
+      if ((full&4) && toy_list[i].flags) {
         fprintf(out, "See <a href=#%s>%s</a>\n", s, s);
 
         return;

+ 0 - 1
www/git/index.html

@@ -1 +0,0 @@
-Not browseable: <b>git clone https://landley.net/toybox/git</b>