summaryrefslogtreecommitdiffstats
path: root/commands/rm.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/rm.c')
-rw-r--r--commands/rm.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/commands/rm.c b/commands/rm.c
index 39544f48c2..5f1f582f5e 100644
--- a/commands/rm.c
+++ b/commands/rm.c
@@ -58,14 +58,15 @@ static int do_rm(int argc, char *argv[])
return 0;
}
-static const __maybe_unused char cmd_rm_help[] =
-"Usage: rm [OPTIONS] [FILES]\n"
-"Remove files\n"
-"-r remove directories and their contents recursively\n";
+BAREBOX_CMD_HELP_START(rm)
+BAREBOX_CMD_HELP_TEXT("Options:")
+BAREBOX_CMD_HELP_OPT ("-r", "remove directories and their contents recursively")
+BAREBOX_CMD_HELP_END
BAREBOX_CMD_START(rm)
.cmd = do_rm,
- .usage = "remove files",
+ BAREBOX_CMD_DESC("remove files")
+ BAREBOX_CMD_OPTS("[-r] FILES...")
BAREBOX_CMD_GROUP(CMD_GRP_FILE)
BAREBOX_CMD_HELP(cmd_rm_help)
BAREBOX_CMD_END