Hi Anton, * Anton Weber <ant@xxxxxxxxx> [2012-06-15 13:43:00 +0200]: > Without the colon getopt ignores the parameter and optarg is always NULL. > --- > monitor/main.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/monitor/main.c b/monitor/main.c > index 90e32c5..0b8ae30 100644 > --- a/monitor/main.c > +++ b/monitor/main.c > @@ -73,7 +73,7 @@ int main(int argc, char *argv[]) > for (;;) { > int opt; > > - opt = getopt_long(argc, argv, "bvh", main_options, NULL); > + opt = getopt_long(argc, argv, "b:vh", main_options, NULL); > if (opt < 0) > break; Ack. Gustavo -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html