summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index a688cb6..ed15eb7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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)
{