jail(8): improve manual and usage information with more clear

description for "jail -e" mode to show that it does not take
additional jail name argument.

Reported by:		David Marec <david.marec@davenulle.org>
MFC after:		3 days
This commit is contained in:
eugen 2020-04-17 10:12:11 +00:00
parent 77755bd98c
commit 70066b9339
2 changed files with 8 additions and 4 deletions

View File

@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd August 6, 2019
.Dd April 17, 2020
.Dt JAIL 8
.Os
.Sh NAME
@ -49,7 +49,6 @@
.Nm
.Op Fl qv
.Op Fl f Ar conf_file
.Op Fl e Ar separator
.Op Fl rR
.Op Cm * | Ar jail ...
.Nm
@ -60,6 +59,10 @@
.Op Fl n Ar jailname
.Op Fl s Ar securelevel
.Op Ar path hostname [ Ar ip Ns [ Ns Ar ,... Ns ]] Ar command ...
.Nm
.Op Fl f Ar conf_file
.Fl e
.Ar separator
.Sh DESCRIPTION
The
.Nm

View File

@ -1040,10 +1040,11 @@ usage(void)
(void)fprintf(stderr,
"usage: jail [-dhilqv] [-J jid_file] [-u username] [-U username]\n"
" -[cmr] param=value ... [command=command ...]\n"
" jail [-dqv] [-f file] [-e separator] -[cmr] [jail]\n"
" jail [-dqv] [-f file] -[cmr] [jail]\n"
" jail [-qv] [-f file] -[rR] ['*' | jail ...]\n"
" jail [-dhilqv] [-J jid_file] [-u username] [-U username]\n"
" [-n jailname] [-s securelevel]\n"
" path hostname [ip[,...]] command ...\n");
" path hostname [ip[,...]] command ...\n"
" jail [-f file] -e separator\n");
exit(1);
}