diff options
author | des <des@FreeBSD.org> | 2001-01-14 19:08:58 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-01-14 19:08:58 +0000 |
commit | d43290aabadb7fada357495c79ad4834af350ce8 (patch) | |
tree | 49ae6fb4432f67408b99474a737e98723f7ccb40 /sbin | |
parent | b367158092ede8fb51dc89974f17138bada17573 (diff) | |
download | FreeBSD-src-d43290aabadb7fada357495c79ad4834af350ce8.zip FreeBSD-src-d43290aabadb7fada357495c79ad4834af350ce8.tar.gz |
Document the -N option in the usage message and the man page.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/sysctl/sysctl.8 | 8 | ||||
-rw-r--r-- | sbin/sysctl/sysctl.c | 10 |
2 files changed, 10 insertions, 8 deletions
diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8 index d7291c7..25aa7c1 100644 --- a/sbin/sysctl/sysctl.8 +++ b/sbin/sysctl/sysctl.8 @@ -40,14 +40,14 @@ .Nd get or set kernel state .Sh SYNOPSIS .Nm -.Op Fl bn +.Op Fl bNn .Ar name ... .Nm -.Op Fl bn +.Op Fl bNn .Fl w .Ar name=value ... .Nm -.Op Fl bn +.Op Fl bNn .Fl aAX .Sh DESCRIPTION The @@ -73,6 +73,8 @@ few bytes is dumped in hex. Same as .Fl A except the entire value of opaque variables is hexdumped. +.It Fl N +Show only variable names, not their values. .It Fl n Specify that the printing of the field name should be suppressed and that only its value should be output. diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index c7c1234..10850fe 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -71,11 +71,11 @@ usage(void) { (void)fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n", - "usage: sysctl [-bn] variable ...", - " sysctl [-bn] -w variable=value ...", - " sysctl [-bn] -a", - " sysctl [-bn] -A", - " sysctl [-bn] -X"); + "usage: sysctl [-bNn] variable ...", + " sysctl [-bNn] -w variable=value ...", + " sysctl [-bNn] -a", + " sysctl [-bNn] -A", + " sysctl [-bNn] -X"); exit(1); } |