summaryrefslogtreecommitdiff
path: root/c_src/cmd_strip_alloc.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-08-18 14:00:27 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-08-18 14:00:27 -0400
commitcd01dec844837f929ff04e9e568b78cea2678932 (patch)
treefe50dd2ffb227bae2b51b2d646fad879b552e6de /c_src/cmd_strip_alloc.c
parent45b2f382db4febb1db738785f870424aee22f01c (diff)
Commands called with no arguments now print usage
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'c_src/cmd_strip_alloc.c')
-rw-r--r--c_src/cmd_strip_alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c_src/cmd_strip_alloc.c b/c_src/cmd_strip_alloc.c
index e16eb093..90e733a7 100644
--- a/c_src/cmd_strip_alloc.c
+++ b/c_src/cmd_strip_alloc.c
@@ -96,8 +96,8 @@ int cmd_strip_alloc(int argc, char *argv[])
args_shift(optind);
if (!argc) {
- fprintf(stderr, "Please supply device(s)\n");
- exit(8);
+ strip_alloc_usage();
+ die("Please supply device(s)");
}
darray_const_str devs = get_or_split_cmdline_devs(argc, argv);