X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=main.c;h=642e0727182f75de5fb03047594462ab4f3b0f8e;hb=c785ceaf4cb4032dafb832d27caba419d5be1adc;hp=a09bfe03a01099efebe11f7337df2838a775e3f3;hpb=88e679ab1df89b2b14f40f4566095d5a01439c05;p=ext%2Fsubsurface.git diff --git a/main.c b/main.c index a09bfe0..642e072 100644 --- a/main.c +++ b/main.c @@ -155,6 +155,15 @@ static void parse_argument(const char *arg) case 'v': verbose++; continue; + case '-': + /* long options with -- */ + if (strcmp(arg,"--import") == 0) { + /* mark the dives so far as the base, + * everything after is imported */ + report_dives(); + return; + } + /* fallthrough */ default: fprintf(stderr, "Bad argument '%s'\n", arg); exit(1);