#include <trbnet.h>
#include <trberror.h>
+static const char pulser_version[] = "$Revision: 1.3 $";
+
#define bufferSize 16385
/* ------ MAIN ---------------------------------------------------------- */
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)
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]));
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;
}