summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/flam3-genome.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/flam3-genome.c b/src/flam3-genome.c
index 1e00e9b..4551274 100644
--- a/src/flam3-genome.c
+++ b/src/flam3-genome.c
@@ -448,8 +448,17 @@ main(argc, argv)
}
putenv(palpath);
-#endif
+#endif
+ if (argc>1) {
+ if (strcmp("--version",argv[1])==0) {
+ printf("FLAM3-%s\n",flam3_version());
+ exit(0);
+ } else {
+ printf("unrecognized option %s, aborting.\n",argv[1]);
+ exit(-1);
+ }
+ }
verbose = argi("verbose", 0);