Skip to content

Commit

Permalink
Print help text when callin gie without arguments
Browse files Browse the repository at this point in the history
Previously gie would return "Nothing to do" when called without
arguments. With this change the help text is returned instead.
  • Loading branch information
kbevers committed Mar 27, 2018
1 parent 92b3b28 commit 6248856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gie.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,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 6248856

Please sign in to comment.