-N without -M is pointless.
This commit is contained in:
parent
46fb2e1dbc
commit
8482be06ec
@ -49,13 +49,10 @@
|
|||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl Tfknst
|
.Op Fl Tfknst
|
||||||
.Op Fl M Ar core
|
.Op Fl M Ar core Op Fl N Ar system
|
||||||
.Op Fl N Ar system
|
|
||||||
.Pp
|
|
||||||
.Nm swapinfo
|
.Nm swapinfo
|
||||||
.Op Fl k
|
.Op Fl k
|
||||||
.Op Fl M Ar core
|
.Op Fl M Ar core Op Fl N Ar system
|
||||||
.Op Fl N Ar system
|
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The
|
The
|
||||||
.Nm
|
.Nm
|
||||||
@ -70,11 +67,9 @@ option is implied, and only the
|
|||||||
.Fl k
|
.Fl k
|
||||||
option is legal.
|
option is legal.
|
||||||
.Pp
|
.Pp
|
||||||
If neither the
|
If the
|
||||||
.Fl N
|
|
||||||
nor the
|
|
||||||
.Fl M
|
.Fl M
|
||||||
option is specified, information is obtained from
|
option is not specified, information is obtained from
|
||||||
the currently running kernel via the
|
the currently running kernel via the
|
||||||
.Xr sysctl 3
|
.Xr sysctl 3
|
||||||
interface.
|
interface.
|
||||||
@ -244,7 +239,10 @@ PPPDISC.
|
|||||||
.It Fl M
|
.It Fl M
|
||||||
Extract values associated with the name list from the specified core.
|
Extract values associated with the name list from the specified core.
|
||||||
.It Fl N
|
.It Fl N
|
||||||
Extract the name list from the specified system instead of the default,
|
If
|
||||||
|
.Fl M
|
||||||
|
is also specified,
|
||||||
|
extract the name list from the specified system instead of the default,
|
||||||
which is the kernel image the system has booted from.
|
which is the kernel image the system has booted from.
|
||||||
.El
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
|
@ -124,10 +124,10 @@ main(int argc, char *argv[])
|
|||||||
if (!strcmp(opts, "swapinfo")) {
|
if (!strcmp(opts, "swapinfo")) {
|
||||||
swapflag = 1;
|
swapflag = 1;
|
||||||
opts = "kM:N:";
|
opts = "kM:N:";
|
||||||
usagestr = "swapinfo [-k] [-M core] [-N system]";
|
usagestr = "swapinfo [-k] [-M core [-N system]]";
|
||||||
} else {
|
} else {
|
||||||
opts = "TM:N:fknst";
|
opts = "TM:N:fknst";
|
||||||
usagestr = "pstat [-Tfknst] [-M core] [-N system]";
|
usagestr = "pstat [-Tfknst] [-M core [-N system]]";
|
||||||
}
|
}
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv, opts)) != -1)
|
while ((ch = getopt(argc, argv, opts)) != -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user