aboutsummaryrefslogtreecommitdiff
path: root/fractal-gen.c
diff options
context:
space:
mode:
Diffstat (limited to 'fractal-gen.c')
-rw-r--r--fractal-gen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fractal-gen.c b/fractal-gen.c
index d2d21f9..855017e 100644
--- a/fractal-gen.c
+++ b/fractal-gen.c
@@ -172,6 +172,10 @@ int parse_args(int argc, char **argv)
clust_id = 0;
clust_total = 1;
+ /* bail out early if no arguments are supplied */
+ if (argc <= 1)
+ return 1;
+
while ( (opt = getopt(argc, argv, "s:i:e:c:t:N:T")) != -1 )
{
switch (opt)