aboutsummaryrefslogtreecommitdiff
path: root/stdu.c
diff options
context:
space:
mode:
authorJoel Kronqvist <joelkronqvist@proton.me>2024-04-13 21:48:07 +0300
committerJoel Kronqvist <joelkronqvist@proton.me>2024-04-13 21:51:01 +0300
commitba5dd828bde07493ef5f2f8abf6921e0a040133d (patch)
tree3032f7429482f27afb015f9ab4605df0a4f3d460 /stdu.c
parentf8f07ca39bd617ddaeb2149f138b12aa7a6532bf (diff)
downloadstdu-ba5dd828bde07493ef5f2f8abf6921e0a040133d.tar.gz
stdu-ba5dd828bde07493ef5f2f8abf6921e0a040133d.zip
Combined one-letter options support (eg. "-mhp 3")
Diffstat (limited to 'stdu.c')
-rw-r--r--stdu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdu.c b/stdu.c
index 0c3c7a6..a41071a 100644
--- a/stdu.c
+++ b/stdu.c
@@ -19,7 +19,7 @@ int main (int argc, char* argv[]) {
char* err_msg = (char*) res.result;
fprintf(
stderr,
- "Error parsing command line: %s\n",
+ "Error parsing command line: %s.\nTry `stdu --help` for more info.\n",
err_msg
);
return 1;
@@ -34,7 +34,7 @@ Print amount of data piped to stdin.\n\
--help | -?: print this help message\n\
--human-readable | -h: output in a human readable format\n\
--multiline | -m: output with line breaks\n\
---precision n | -p n | -pn: output with n significant digits\n "
+--precision n | -p n | -pn: output with n significant digits\n"
);
return 0;
}