From 4f775aa7b8993feda0775a721f1195d81d134792 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Mon, 7 Mar 2022 16:25:52 -0700 Subject: added help text for h flag --- uirc.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'uirc.c') diff --git a/uirc.c b/uirc.c index 1a7158c..f0578f8 100644 --- a/uirc.c +++ b/uirc.c @@ -11,8 +11,21 @@ int handleArg(arg) char *arg; { char flag, *longFlag, first, firstTwo[3]; char *help, *license; - help = "Copyright 2022 Bryson Steck\n" - ""; + help = "\nCopyright 2022 Bryson Steck\n" + "Licensed under the BSD 2-Clause. You can read the license by running 'uirc -l'\n\n" + + "usage: uirc [-hl] [-r] IMAGE1 [IMAGE2] [...]\n\n" + + "options:\n" + "\t-h\t> Display this message\n" + "\t-l\t> Display the license disclaimer for uirc (BSD 2-Clause)\n\n" + + "\t-r\t> Display the resolution of the image (in addition to the ratio)\n\n" + + "help:\n" + "If you get stuck using uirc, you can read the manpage for uirc:\n\n" + + "\t'man uirc'\n\n"; flag = '-'; longFlag = "--"; -- cgit v1.2.3