summaryrefslogtreecommitdiff
path: root/sbin/wsconsctl/wsconsctl.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-11-26 13:36:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-11-26 13:36:35 +0000
commit8a978ed56b75a0f4fd0602dbe656a827baeedc14 (patch)
tree10724ed6fd520333d88f6bc187fc477addb97a86 /sbin/wsconsctl/wsconsctl.c
parentb2e70517f47cbe6832a7f91cc516866c53bc2760 (diff)
if no arguments given, assume a nice default; ok miod jakemsr deanna
Diffstat (limited to 'sbin/wsconsctl/wsconsctl.c')
-rw-r--r--sbin/wsconsctl/wsconsctl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/wsconsctl/wsconsctl.c b/sbin/wsconsctl/wsconsctl.c
index 91898f00fdd..f34c12a858a 100644
--- a/sbin/wsconsctl/wsconsctl.c
+++ b/sbin/wsconsctl/wsconsctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsconsctl.c,v 1.19 2007/05/21 07:54:17 jmc Exp $ */
+/* $OpenBSD: wsconsctl.c,v 1.20 2007/11/26 13:36:33 deraadt Exp $ */
/* $NetBSD: wsconsctl.c,v 1.2 1998/12/29 22:40:20 hannken Exp $ */
/*-
@@ -82,7 +82,7 @@ usage(char *msg)
fprintf(stderr, "%s: %s\n", __progname, msg);
fprintf(stderr,
- "usage: %s [-n] -a\n"
+ "usage: %s [-an]\n"
" %s [-n] [-f file] name ...\n"
" %s [-n] [-f file] name=value ...\n"
" %s [-n] [-f file] name+=value ...\n",
@@ -124,6 +124,8 @@ main(int argc, char *argv[])
if (argc > 0 && aflag != 0)
usage("excess arguments after -a");
+ if (argc == 0)
+ aflag = 1;
if (aflag != 0) {
for (sw = typesw; sw->name; sw++) {