aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marie Cannie <jmc@openbsd.org>2015-07-21 17:49:33 +0000
committerJean-Marie Cannie <jmc@openbsd.org>2015-07-21 17:49:33 +0000
commit563f8b1b5a08eddbc5a116dc5fff4bffb03be019 (patch)
treecc7320b0a1949de9bbc5b2eb307ac832534aeebb
parent84b171f3d6944dd793c81e474724f5210764b81c (diff)
downloadopendoas-563f8b1b5a08eddbc5a116dc5fff4bffb03be019.tar.gz
options w/o args go first in SYNOPSIS, and add -C to usage();
-rw-r--r--doas.14
-rw-r--r--doas.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/doas.1 b/doas.1
index 3e61619..5220eb5 100644
--- a/doas.1
+++ b/doas.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: doas.1,v 1.8 2015/07/21 11:04:06 zhuk Exp $
+.\" $OpenBSD: doas.1,v 1.9 2015/07/21 16:12:04 tedu Exp $
.\"
.\"Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
.\"
@@ -21,8 +21,8 @@
.Nd execute commands as another user
.Sh SYNOPSIS
.Nm doas
-.Op Fl C Ar config
.Op Fl s
+.Op Fl C Ar config
.Op Fl u Ar user
.Ar command
.Op Ar args
diff --git a/doas.c b/doas.c
index 8899d78..7ede273 100644
--- a/doas.c
+++ b/doas.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: doas.c,v 1.16 2015/07/21 16:12:04 tedu Exp $ */
+/* $OpenBSD: doas.c,v 1.17 2015/07/21 16:15:20 tedu Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -36,7 +36,7 @@
static void __dead
usage(void)
{
- fprintf(stderr, "usage: doas [-s] [-u user] command [args]\n");
+ fprintf(stderr, "usage: doas [-s] [-C config] [-u user] command [args]\n");
exit(1);
}