summaryrefslogtreecommitdiff
path: root/src/commands/printf.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/commands/printf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/printf.c b/src/commands/printf.c
index f9f3931..df6ce32 100644
--- a/src/commands/printf.c
+++ b/src/commands/printf.c
@@ -96,7 +96,8 @@ static void help(void) {
COMMAND(print) {
if (argc < 1) {
- error("usage: printf FORMAT [ARG]...\n");
+ global_help(help);
+ return EXIT_SUCCESS;
}
parse_help(argc, argv, help);