From: hadaq Date: Wed, 2 Sep 2009 22:12:53 +0000 (+0000) Subject: added rcsid X-Git-Tag: v6.0~357 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=d8b66a07da7576980f2a026ffcdb22f495e6555d;p=trbnettools.git added rcsid --- diff --git a/trbrich/pulser.c b/trbrich/pulser.c index 48e5190..9568462 100644 --- a/trbrich/pulser.c +++ b/trbrich/pulser.c @@ -10,6 +10,8 @@ #include #include +static const char pulser_version[] = "$Revision: 1.3 $"; + #define bufferSize 16385 /* ------ MAIN ---------------------------------------------------------- */ @@ -46,6 +48,7 @@ void usage(const char *progName) printf(" -n process numEvents triggers\n"); printf(" -t send triggerType (default 0)\n"); printf(" -i use triggerInput input(default 0)\n"); + printf(" -V Version number\n"); } int main(int argc, char ** argv) @@ -64,7 +67,7 @@ int main(int argc, char ** argv) trb_debug = 0; /* Parse Arguments */ - while ((i = getopt(argc, argv, "+hd:f:n:t:i:")) != -1) { + while ((i = getopt(argc, argv, "+hd:f:n:t:i:V")) != -1) { switch (i) { case '?': usage(basename(argv[0])); @@ -87,6 +90,11 @@ int main(int argc, char ** argv) case 'i': input = (uint8_t)strtoul(optarg, NULL, 0); break; + case 'V': + printf("%s %s, using libtrbnet %s\n", + basename(argv[0]), pulser_version, trbnet_version); + exit(EXIT_SUCCESS); + break; default: break; }