summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2024-02-14 23:57:43 -0600
committerzachir <zachir@librem.one>2024-02-14 23:57:43 -0600
commit9c60d421fd95a33350ac9c68512e6b1d2edd9f27 (patch)
treeb50fe25f6a76739278c48a1e4552e4917a8a4e11
parent0689d6bbbb0e6ecc3934d8e4a2e9b0fc66a0b29f (diff)
even: Fix help message
The help message was missing some information, that has now been added.
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 5d4716d..62d3d28 100644
--- a/main.c
+++ b/main.c
@@ -3,9 +3,12 @@
void printhelp() {
fprintf(stderr, "even: a binary by ZachIR to check if a number is even or ");
fprintf(stderr, "odd.\n");
+ fprintf(stderr, "even [-hvc]\n");
+ fprintf(stderr, "even [-q] NUMBER\n");
fprintf(stderr, "\t-h: prints this help message\n");
fprintf(stderr, "\t-v: prints the version\n");
fprintf(stderr, "\t-c: prints the copyright information\n");
+ fprintf(stderr, "\t-q: just use error codes, no text\n");
return;
}