diff --git a/monitor/main.c b/monitor/main.c
index 3c4886f..4e8b433 100644
--- a/monitor/main.c
+++ b/monitor/main.c
static const struct option main_options[] = {
{ "btsnoop", required_argument, NULL, 'b' },
+ { "version", no_argument, NULL, 'v' },
{ "help", no_argument, NULL, 'h' },
{ }
};
for (;;) {
int opt;
- opt = getopt_long(argc, argv, "bh", main_options, NULL);
+ opt = getopt_long(argc, argv, "bvh", main_options, NULL);
if (opt < 0)
break;
case 'b':
btsnoop_open(optarg);
break;
+ case 'v':
+ printf("%s\n", VERSION);
+ return EXIT_SUCCESS;
case 'h':
usage();
return EXIT_SUCCESS;