summaryrefslogtreecommitdiff
path: root/tools/bpf/bpftool/token.c
diff options
context:
space:
mode:
authorTao Chen <chen.dylane@linux.dev>2025-09-19 11:48:15 +0800
committerAndrii Nakryiko <andrii@kernel.org>2025-09-19 15:35:47 -0700
commitbce5749b02019f9b7e60fdff584098e57337c8b6 (patch)
tree874fa50b5f58f5cae47d0f8d6770195efcb96c55 /tools/bpf/bpftool/token.c
parent815276dbfbb79abd531f09eca7d3208a847d6a0b (diff)
bpftool: Add HELP_SPEC_OPTIONS in token.c
$ ./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
Diffstat (limited to 'tools/bpf/bpftool/token.c')
-rw-r--r--tools/bpf/bpftool/token.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/token.c b/tools/bpf/bpftool/token.c
index 6312e662a129..82b829e44c82 100644
--- a/tools/bpf/bpftool/token.c
+++ b/tools/bpf/bpftool/token.c
@@ -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]);