diff options
author | Olivier Martin <olivier@labapart.com> | 2020-04-07 21:44:00 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-04-15 16:02:50 -0700 |
commit | 8519cdbf4f7fa541e852608cbe7044df2dfe8470 (patch) | |
tree | d4e2661ca7b07de3f7023947924675b5c1e7872e /emulator/main.c | |
parent | 8fcbb6b01f4c6626a5be00eee4cad1351e05160e (diff) | |
download | bluez-8519cdbf4f7fa541e852608cbe7044df2dfe8470.tar.gz |
emulator: Fix command line parameters with optional argument
Some parameters were missing the indication that additional
argument could be expected.
Diffstat (limited to 'emulator/main.c')
-rw-r--r-- | emulator/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/emulator/main.c b/emulator/main.c index 68c53488e..75cb79c7b 100644 --- a/emulator/main.c +++ b/emulator/main.c @@ -56,10 +56,12 @@ static void usage(void) printf("options:\n" "\t-S Create local serial port\n" "\t-s Create local server sockets\n" - "\t-l [num] Number of local controllers\n" + "\t-l[num] Number of local controllers\n" "\t-L Create LE only controller\n" + "\t-U[num] Number of test LE controllers\n" "\t-B Create BR/EDR only controller\n" "\t-A Create AMP controller\n" + "\t-T[num] Number of test AMP controllers\n" "\t-h, --help Show help options\n"); } @@ -97,7 +99,7 @@ int main(int argc, char *argv[]) for (;;) { int opt; - opt = getopt_long(argc, argv, "Ssl::LBAUTvh", + opt = getopt_long(argc, argv, "Ssl::LBAU::T::vh", main_options, NULL); if (opt < 0) break; |