mirror of
https://github.com/scottdraves/flam3.git
synced 2025-01-21 05:20:05 -05:00
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:
parent
83ecdc6104
commit
797c1cc2ce
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user