{"call", required_argument, 0, 'c'},
{"port", required_argument, 0, 'p'},
{"addr", required_argument, 0, 'a'},
+ {"version", no_argument, 0, 'x'},
{0, 0, 0, 0}};
- while (-1 != (c = getopt_long(argc, argv, "c:p:a:", long_options,
+ while (-1 != (c = getopt_long(argc, argv, "c:p:a:x", long_options,
&option_index))) {
switch (c) {
case 'c':
op_code = optarg;
break;
+ case 'x':
+ puts(VERSION);
+ exit(0);
+ break;
default:
printf("%s", usage);
return false;
{"sbstat", no_argument, 0, 't'},
{"wpart", no_argument, 0, 'w'},
{"verbose", no_argument, 0, 'v'},
+ {"version", no_argument, 0, 'x'},
{0, 0, 0, 0}};
- while (-1 != (c = getopt_long(argc, argv, "i:s:c:q:d:lbtwv",
+ while (-1 != (c = getopt_long(argc, argv, "i:s:c:q:d:lbtwvx",
long_options, &option_index))) {
switch (c) {
case 'v':
verbose = true;
break;
+ case 'x':
+ puts(VERSION);
+ exit(0);
+ break;
default:
printf("%s", usage);
return false;
{"input", required_argument, 0, 'i'},
{"wpart", no_argument, 0, 'w'},
{"verbose", no_argument, 0, 'v'},
+ {"version", no_argument, 0, 'x'},
{0, 0, 0, 0}};
- while (-1 != (c = getopt_long(argc, argv, "i:wv",
+ while (-1 != (c = getopt_long(argc, argv, "i:wvx",
long_options, &option_index))) {
switch (c) {
case 'v':
verbose = true;
break;
+ case 'x':
+ puts(VERSION);
+ exit(0);
+ break;
default:
printf("%s", usage);
return false;
{"ext", required_argument, 0, 'e'},
{"wpart", no_argument, 0, 'w'},
{"verbose", no_argument, 0, 'v'},
+ {"version", no_argument, 0, 'x'},
{0, 0, 0, 0}};
- while (-1 != (c = getopt_long(argc, argv, "i:b:e:wv",
+ while (-1 != (c = getopt_long(argc, argv, "i:b:e:wvx",
long_options, &option_index))) {
switch (c) {
case 'v':
verbose = true;
break;
+ case 'x':
+ puts(VERSION);
+ exit(0);
+ break;
default:
printf("%s", usage);
return false;
{"verbose", no_argument, 0, 'v'},
{"winpart", no_argument, 0, 'w'},
{"cache_wb", no_argument, 0, 'c'},
+ {"version", no_argument, 0, 'x'},
{0, 0, 0, 0}};
- while (-1 != (c = getopt_long(argc, argv, "i:p:vcw", long_options,
+ while (-1 != (c = getopt_long(argc, argv, "i:p:vcwx", long_options,
&option_index))) {
switch (c) {
case 'w':
winpart = true;
break;
+ case 'x':
+ puts(VERSION);
+ exit(0);
+ break;
default:
printf("%s", usage);
return false;