Skip to content

Commit

Permalink
Print help when calling cct without arguments
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kbevers committed Mar 27, 2018
1 parent 0962d1e commit 92b3b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cct.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,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;
}
Expand Down

0 comments on commit 92b3b28

Please sign in to comment.