aboutsummaryrefslogtreecommitdiff
path: root/wtf8.c
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-12-23 19:52:23 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-12-23 19:52:23 +1300
commit927560e25d6424ef134c85138b08a96e847d2841 (patch)
tree0362965b2bf0b417c5e92b8b1c927fc335ccfb9a /wtf8.c
parentRefactor for legibility (diff)
downloadwtf8-927560e25d6424ef134c85138b08a96e847d2841.tar.gz
wtf8-927560e25d6424ef134c85138b08a96e847d2841.zip
Add help message for improper usage
Diffstat (limited to 'wtf8.c')
-rw-r--r--wtf8.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wtf8.c b/wtf8.c
index ea8950a..1b99d63 100644
--- a/wtf8.c
+++ b/wtf8.c
@@ -92,8 +92,10 @@ int main(int argc, char **argv) {
/*
* Check we have one and only one argument
*/
- if (argc != 2)
+ if (argc != 2) {
+ fprintf(stderr, "%s: Need one argument\n", PROGRAM_NAME);
exit(EXIT_FAILURE);
+ }
/*
* Print the sole argument first as hex octets, then as characters, spaced