tools: bpftool: alias show and list commands
[linux-2.6-microblaze.git] / tools / bpf / bpftool / map.c
index a8c3a33..8d7db9d 100644 (file)
@@ -861,7 +861,7 @@ static int do_help(int argc, char **argv)
        }
 
        fprintf(stderr,
-               "Usage: %s %s show   [MAP]\n"
+               "Usage: %s %s { show | list }   [MAP]\n"
                "       %s %s dump    MAP\n"
                "       %s %s update  MAP  key BYTES value VALUE [UPDATE_FLAGS]\n"
                "       %s %s lookup  MAP  key BYTES\n"
@@ -885,6 +885,7 @@ static int do_help(int argc, char **argv)
 
 static const struct cmd cmds[] = {
        { "show",       do_show },
+       { "list",       do_show },
        { "help",       do_help },
        { "dump",       do_dump },
        { "update",     do_update },