summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Reckase <e.reckase@gmail.com>2010-12-12 04:42:46 +0000
committerScott Draves <spot@draves.org>2015-02-15 12:20:14 -0500
commit797c1cc2ce44c5f8a9f951c9b8514e2e802ee505 (patch)
treed32ba7c700009b81fe8f2164b1154436346f6944
parent83ecdc6104f930f3520f7a687ae21b305434599c (diff)
downloadpucket-797c1cc2ce44c5f8a9f951c9b8514e2e802ee505.tar.gz
pucket-797c1cc2ce44c5f8a9f951c9b8514e2e802ee505.tar.bz2
pucket-797c1cc2ce44c5f8a9f951c9b8514e2e802ee505.zip
added --version option to print flam3 version from flam3-genome
git-svn-id: https://flam3.googlecode.com/svn/trunk@146 77852712-ef1d-11de-8684-7d64432d61a3
-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);