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
This commit is contained in:
Erik Reckase 2010-12-12 04:42:46 +00:00 committed by Scott Draves
parent 83ecdc6104
commit 797c1cc2ce

View File

@ -448,8 +448,17 @@ main(argc, argv)
} }
putenv(palpath); 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); verbose = argi("verbose", 0);