Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Tao Chen and committed by
Andrii Nakryiko
bce5749b 815276db

+1
+1
tools/bpf/bpftool/token.c
··· 206 206 fprintf(stderr, 207 207 "Usage: %1$s %2$s { show | list }\n" 208 208 " %1$s %2$s help\n" 209 + " " HELP_SPEC_OPTIONS " }\n" 209 210 "\n" 210 211 "", 211 212 bin_name, argv[-2]);