diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-10-16 02:21:27 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-10-16 02:21:27 +0000 |
commit | ef9b1a4e8db808ea5936e8fee8eebdcc03d64748 (patch) | |
tree | 4d50351985b780dfade82cfd44cea6c387ec1587 /usr.bin/radioctl | |
parent | f362a3a0e2a178c8353a6013b7572769234ac867 (diff) |
make -a the default, for consistency with other *ctl programs ...
ok sthen@, looks good to oga@
Diffstat (limited to 'usr.bin/radioctl')
-rw-r--r-- | usr.bin/radioctl/radioctl.1 | 6 | ||||
-rw-r--r-- | usr.bin/radioctl/radioctl.c | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/usr.bin/radioctl/radioctl.1 b/usr.bin/radioctl/radioctl.1 index 306b3a6c40f..8ce09ca8737 100644 --- a/usr.bin/radioctl/radioctl.1 +++ b/usr.bin/radioctl/radioctl.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: radioctl.1,v 1.13 2007/09/27 21:55:54 sobrado Exp $ +.\" $OpenBSD: radioctl.1,v 1.14 2008/10/16 02:21:26 jakemsr Exp $ .\" .\" Copyright (c) 2001 Vladimir Popov .\" All rights reserved. @@ -23,7 +23,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: September 27 2007 $ +.Dd $Mdocdate: October 16 2008 $ .Dt RADIOCTL 1 .Os .Sh NAME @@ -60,6 +60,8 @@ The options are as follows: .Bl -tag -width Ds .It Fl a Print all device variables and their current values. +This is the default, if no parameters are given to +.Nm . .It Fl f Ar file Specify an alternative radio tuner device. .It Fl n diff --git a/usr.bin/radioctl/radioctl.c b/usr.bin/radioctl/radioctl.c index e611e4ecf85..488365d8121 100644 --- a/usr.bin/radioctl/radioctl.c +++ b/usr.bin/radioctl/radioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radioctl.c,v 1.14 2007/09/27 21:55:54 sobrado Exp $ */ +/* $OpenBSD: radioctl.c,v 1.15 2008/10/16 02:21:26 jakemsr Exp $ */ /* $RuOBSD: radioctl.c,v 1.4 2001/10/20 18:09:10 pva Exp $ */ /* @@ -138,9 +138,6 @@ main(int argc, char **argv) int silent = 0; int mode = O_RDONLY; - if (argc < 2) - usage(); - radiodev = getenv(RADIO_ENV); if (radiodev == NULL) radiodev = RADIODEVICE; @@ -171,6 +168,9 @@ main(int argc, char **argv) argc -= optind; argv += optind; + if (argc == 0) + show_vars = 1; + /* * Scan the options for `name=value` so the * device can be opened in the proper mode. |