-.\" $OpenBSD: doas.1,v 1.9 2015/07/21 16:12:04 tedu Exp $
+.\" $OpenBSD: doas.1,v 1.10 2015/07/21 17:49:33 jmc Exp $
.\"
.\"Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
.\"
The
.Nm
utility executes the given command as another user.
+The
+.Ar command
+argument is mandatory unless
+.Fl C
+or
+.Fl s
+is specified.
.Pp
The options are as follows:
.Bl -tag -width tenletters
Parse and check the configuration file
.Ar config ,
then exit.
+If
+.Ar command
+is supplied,
+.Nm
+will also perform command matching.
+In the latter case
+either
+.Sq permit ,
+.Sq permit nopass
+or
+.Sq deny
+will be printed on standard output, depending on command
+matching results.
No command is executed.
.It Fl s
Execute the shell from