diff options
author | julian <julian@FreeBSD.org> | 2003-05-10 21:50:37 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2003-05-10 21:50:37 +0000 |
commit | fe2526340b1a2d7ed079617d2eca31aa6425d937 (patch) | |
tree | 6e0dee485a2a2757ceb37dde12c1fa3ef410e6b7 /usr.sbin/bluetooth/hccontrol/hccontrol.c | |
parent | dc5734d94b071df224b65d45b95d9ae7c5d563ab (diff) | |
download | FreeBSD-src-fe2526340b1a2d7ed079617d2eca31aa6425d937.zip FreeBSD-src-fe2526340b1a2d7ed079617d2eca31aa6425d937.tar.gz |
Part 2 of the commit if new bluetooth code.
Submitted by: Maksim Yevmenkin <m_evmenkin@yahoo.com>
Approved by: re@
Diffstat (limited to 'usr.sbin/bluetooth/hccontrol/hccontrol.c')
-rw-r--r-- | usr.sbin/bluetooth/hccontrol/hccontrol.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bluetooth/hccontrol/hccontrol.c b/usr.sbin/bluetooth/hccontrol/hccontrol.c index 12b70eb..fafbf7b 100644 --- a/usr.sbin/bluetooth/hccontrol/hccontrol.c +++ b/usr.sbin/bluetooth/hccontrol/hccontrol.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: hccontrol.c,v 1.11 2002/09/12 18:19:43 max Exp $ + * $Id: hccontrol.c,v 1.2 2003/04/27 19:45:24 max Exp $ * $FreeBSD$ */ @@ -63,7 +63,7 @@ main(int argc, char *argv[]) int n; /* Process command line arguments */ - while ((n = getopt(argc, argv, "n:v")) != -1) { + while ((n = getopt(argc, argv, "n:vh")) != -1) { switch (n) { case 'n': node = optarg; @@ -73,7 +73,7 @@ main(int argc, char *argv[]) verbose = 1; break; - case '?': + case 'h': default: usage(); } @@ -268,7 +268,7 @@ print_hci_command(struct hci_command *category) static void usage(void) { - fprintf(stdout, "Usage: hccontrol -n HCI_node_name cmd [p1] [..]]\n"); + fprintf(stdout, "Usage: hccontrol -n HCI_node_name [-h] cmd [p1] [..]]\n"); exit(255); } /* usage */ |