mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
make -a the default when no other options besides the required
-f are used input from and ok sthen@, jmc@, deraadt@
This commit is contained in:
parent
b2953b8608
commit
024cbc4717
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: usbhid.c,v 1.8 2008/06/26 05:42:21 ray Exp $ */
|
||||
/* $OpenBSD: usbhid.c,v 1.9 2008/10/16 18:37:19 jakemsr Exp $ */
|
||||
/* $NetBSD: usbhid.c,v 1.22 2002/02/20 20:30:42 christos Exp $ */
|
||||
|
||||
/*
|
||||
@ -752,7 +752,7 @@ usage(void)
|
||||
{
|
||||
extern char *__progname;
|
||||
|
||||
fprintf(stderr, "Usage: %s -f device [-t table] [-lv] -a\n",
|
||||
fprintf(stderr, "usage: %s -f device [-t table] [-alv]\n",
|
||||
__progname);
|
||||
fprintf(stderr, " %s -f device [-t table] [-v] -r\n",
|
||||
__progname);
|
||||
@ -823,6 +823,9 @@ main(int argc, char **argv)
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
if (argc == 0 && rflag == 0)
|
||||
aflag = 1;
|
||||
|
||||
for (varnum = 0; varnum < (size_t)argc; varnum++) {
|
||||
char const *name, *valuesep;
|
||||
struct Susbvar *svar;
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $OpenBSD: usbhidctl.1,v 1.11 2008/06/26 05:42:21 ray Exp $
|
||||
.\" $OpenBSD: usbhidctl.1,v 1.12 2008/10/16 18:37:19 jakemsr Exp $
|
||||
.\" $NetBSD: usbhidctl.1,v 1.14 2001/12/28 17:49:32 augustss Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -28,7 +28,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd $Mdocdate: June 26 2008 $
|
||||
.Dd $Mdocdate: October 16 2008 $
|
||||
.Dt USBHIDCTL 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -38,8 +38,7 @@
|
||||
.Nm
|
||||
.Fl f Ar device
|
||||
.Op Fl t Ar table
|
||||
.Op Fl lv
|
||||
.Fl a
|
||||
.Op Fl alv
|
||||
.Nm
|
||||
.Fl f Ar device
|
||||
.Op Fl t Ar table
|
||||
@ -71,6 +70,10 @@ The options are as follows:
|
||||
.It Fl a
|
||||
Show all items and their current values.
|
||||
This option fails if the device does not support the GET_REPORT command.
|
||||
This is the default, if no parameters other than
|
||||
.Fl f
|
||||
are given to
|
||||
.Nm .
|
||||
.It Fl f Ar device
|
||||
Specify a path name for the device to operate on.
|
||||
If
|
||||
|
Loading…
Reference in New Issue
Block a user