Document the -N option in the usage message and the man page.

This commit is contained in:
Dag-Erling Smørgrav 2001-01-14 19:08:58 +00:00
parent b41686b9c5
commit 0ef56fd857
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71043
2 changed files with 10 additions and 8 deletions

View File

@ -40,14 +40,14 @@
.Nd get or set kernel state .Nd get or set kernel state
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl bn .Op Fl bNn
.Ar name ... .Ar name ...
.Nm .Nm
.Op Fl bn .Op Fl bNn
.Fl w .Fl w
.Ar name=value ... .Ar name=value ...
.Nm .Nm
.Op Fl bn .Op Fl bNn
.Fl aAX .Fl aAX
.Sh DESCRIPTION .Sh DESCRIPTION
The The
@ -73,6 +73,8 @@ few bytes is dumped in hex.
Same as Same as
.Fl A .Fl A
except the entire value of opaque variables is hexdumped. except the entire value of opaque variables is hexdumped.
.It Fl N
Show only variable names, not their values.
.It Fl n .It Fl n
Specify that the printing of the field name should be Specify that the printing of the field name should be
suppressed and that only its value should be output. suppressed and that only its value should be output.

View File

@ -71,11 +71,11 @@ usage(void)
{ {
(void)fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n", (void)fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n",
"usage: sysctl [-bn] variable ...", "usage: sysctl [-bNn] variable ...",
" sysctl [-bn] -w variable=value ...", " sysctl [-bNn] -w variable=value ...",
" sysctl [-bn] -a", " sysctl [-bNn] -a",
" sysctl [-bn] -A", " sysctl [-bNn] -A",
" sysctl [-bn] -X"); " sysctl [-bNn] -X");
exit(1); exit(1);
} }