diff options
author | luigi <luigi@FreeBSD.org> | 2001-12-16 02:55:41 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2001-12-16 02:55:41 +0000 |
commit | e39284a68819ffd7e22f09e6afa95bef09a2b285 (patch) | |
tree | 1989073654ca57877e1de5559db56b11c61e4e7b /sbin/sysctl/sysctl.8 | |
parent | 22f5b26d81d78fe6779dfd9c8c42940e528876d4 (diff) | |
download | FreeBSD-src-e39284a68819ffd7e22f09e6afa95bef09a2b285.zip FreeBSD-src-e39284a68819ffd7e22f09e6afa95bef09a2b285.tar.gz |
Add code to export and print the description associated to sysctl
variables. Use the -d flag in sysctl(8) to see this information.
Possible extensions to sysctl:
+ report variables that do not have a description
+ given a name, report the oid it maps to.
Note to developers: have a look at your code, there are a number of
variables which do not have a description.
Note to developers: do we want this in 4.5 ? It is a very small change
and very useful for documentation purposes.
Suggested by: Orion Hodson
Diffstat (limited to 'sbin/sysctl/sysctl.8')
-rw-r--r-- | sbin/sysctl/sysctl.8 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8 index f6c1bb9..ec2e054 100644 --- a/sbin/sysctl/sysctl.8 +++ b/sbin/sysctl/sysctl.8 @@ -44,7 +44,7 @@ .Ar name Ns Op = Ns Ar value .Ar ... .Nm -.Op Fl beNnox +.Op Fl bdeNnox .Fl a .Sh DESCRIPTION The @@ -71,6 +71,8 @@ the command line. Force the value of the variable(s) to be output in raw, binary format. No names are printed and no terminating newlines are output. This is mostly useful with a single variable. +.It Fl d +Print the description of the variable instead of its value. .It Fl e Separate the name and the value of the variable(s) with .Ql = . |