]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
bpftool: Add HELP_SPEC_OPTIONS in token.c
authorTao Chen <chen.dylane@linux.dev>
Fri, 19 Sep 2025 03:48:15 +0000 (11:48 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 19 Sep 2025 22:35:47 +0000 (15:35 -0700)
$ ./bpftool token help

Usage: bpftool token { show | list }
       bpftool token help
       OPTIONS := { {-j|--json} [{-p|--pretty}] | {-d|--debug} }

Fixes: 2d812311c2b2 ("bpftool: Add bpf_token show")
Signed-off-by: Tao Chen <chen.dylane@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Quentin Monnet <qmo@kernel.org>
Link: https://lore.kernel.org/bpf/20250919034816.1287280-1-chen.dylane@linux.dev
tools/bpf/bpftool/token.c

index 6312e662a1299a5ece3a98ef8cf6345c3d4c1ba4..82b829e44c82aa28c1efa5ca882faf32a40f5440 100644 (file)
@@ -206,6 +206,7 @@ static int do_help(int argc, char **argv)
        fprintf(stderr,
                "Usage: %1$s %2$s { show | list }\n"
                "       %1$s %2$s help\n"
+               "       " HELP_SPEC_OPTIONS " }\n"
                "\n"
                "",
                bin_name, argv[-2]);