From 976dac03398addda1c3cf7fc9825959aac06eb0b Mon Sep 17 00:00:00 2001 From: Kristian Evers Date: Tue, 27 Mar 2018 12:24:48 +0200 Subject: Print help when calling cct without arguments Previously when calling cct without any arguments the following message would be presented to the user: cct: Bad transformation arguments - ((null)) 'cct -h' for help With this change the help instructions are returned instead. --- src/cct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cct.c b/src/cct.c index 476ff174..6b8f35f3 100644 --- a/src/cct.c +++ b/src/cct.c @@ -166,7 +166,7 @@ int main(int argc, char **argv) { if (0==o) return 0; - if (opt_given (o, "h")) { + if (opt_given (o, "h") || argc==1) { printf (usage, o->progname); return 0; } -- cgit v1.2.3