diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -151,15 +151,12 @@ int main(int argc, char *argv[]) printf("For more help run 'dedit --help'\n"); } - if (argc == 1) + if (argc == 1 || getopt("-h", 0)) { printhelp(); exit(EXIT_SUCCESS); } - if (getopt("-h", 0)) - printhelp(); - arg *demoarg = getarg(0); if (demoarg == NULL) { |
