From 797c1cc2ce44c5f8a9f951c9b8514e2e802ee505 Mon Sep 17 00:00:00 2001 From: Erik Reckase Date: Sun, 12 Dec 2010 04:42:46 +0000 Subject: 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 --- src/flam3-genome.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3