diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-03-27 13:31:01 +0200 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2018-03-27 13:31:01 +0200 |
| commit | 9b27bd8a4e33dfd3994340af7aab334c262ce27e (patch) | |
| tree | 63f8891c948abb3ac80b6383c2fc826597a6184d | |
| parent | 43a37f0b37b346290d876254ea20c0aec9e23787 (diff) | |
| download | PROJ-9b27bd8a4e33dfd3994340af7aab334c262ce27e.tar.gz PROJ-9b27bd8a4e33dfd3994340af7aab334c262ce27e.zip | |
Print help text when callin gie without arguments
Previously gie would return "Nothing to do" when called without
arguments. With this change the help text is returned instead.
| -rw-r--r-- | src/gie.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -248,7 +248,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); free (o); return 0; |
