From 0ef56fd85794e128026a7722a1b980456f06c491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sun, 14 Jan 2001 19:08:58 +0000 Subject: [PATCH] Document the -N option in the usage message and the man page. --- sbin/sysctl/sysctl.8 | 8 +++++--- 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 d7291c7753a1..25aa7c127885 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 c7c12344eab2..10850fec906c 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); }