diff --git a/mgmt/main.c b/mgmt/main.c
index 1788555..648ba9f 100644
--- a/mgmt/main.c
+++ b/mgmt/main.c
"\tbtmgmt [options] <command> [command parameters]\n");
printf("Options:\n"
+ "\t--verbose\tEnable extra logging\n"
"\t--help\tDisplay help\n");
printf("Commands:\n");
}
static struct option main_options[] = {
+ { "verbose", 0, 0, 'v' },
{ "help", 0, 0, 'h' },
{ 0, 0, 0, 0 }
};
int opt, i, mgmt_sk;
struct pollfd pollfd;
- while ((opt=getopt_long(argc, argv, "+h", main_options, NULL)) != -1) {
+ while ((opt=getopt_long(argc, argv, "+hv", main_options, NULL)) != -1) {
switch (opt) {
+ case 'v':
+ monitor = true;
+ break;
case 'h':
default:
usage();