diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-11-16 16:10:33 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-11-16 16:10:33 +0000 |
commit | 38802a5555988b14e1927d8da6d8c198760284a0 (patch) | |
tree | c4845432a7e4ed4ffffcceacece1f24781e94f12 /audio | |
parent | c9511affda16b45d41eebbce9b2b64f306cf5e86 (diff) |
Make the -c switch mandatory
Diffstat (limited to 'audio')
-rw-r--r-- | audio/headset.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/audio/headset.c b/audio/headset.c index 8111db88..277f7f42 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -1075,11 +1075,16 @@ int main(int argc, char *argv[]) break; default: - printf("Usage: %s [-n] [bdaddr]\n", argv[0]); + printf("Usage: %s -c local_channel [-n] [bdaddr]\n", argv[0]); exit(1); } } + if (!config_channel) { + printf("You need to supply a local channel with the -c switch\n"); + exit(1); + } + if (argv[optind]) { on_init_bda = argv[optind]; daemonize = 0; |