summaryrefslogtreecommitdiff
path: root/src/commands/printf.c
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-05-03 12:17:56 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-05-03 12:17:56 -0400
commitf2606d0875dbaadb3f414d98d8f37fdbdf6036ea (patch)
tree5319a70aaba6cb57d554e7e7b0651908db4ec20a /src/commands/printf.c
parentfix ls segfault (diff)
downloadlazysphere-f2606d0875dbaadb3f414d98d8f37fdbdf6036ea.tar.gz
lazysphere-f2606d0875dbaadb3f414d98d8f37fdbdf6036ea.tar.bz2
lazysphere-f2606d0875dbaadb3f414d98d8f37fdbdf6036ea.zip
add rm, cp, mkdir, mv
Diffstat (limited to 'src/commands/printf.c')
-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);