fix docs of -a option
This commit is contained in:
@@ -13,6 +13,7 @@ nethogs \- Net top tool grouping bandwidth per process
|
|||||||
.RB [ "\-t" ]
|
.RB [ "\-t" ]
|
||||||
.RB [ "\-c" ]
|
.RB [ "\-c" ]
|
||||||
.RB [ "\-p" ]
|
.RB [ "\-p" ]
|
||||||
|
.RB [ "\-a" ]
|
||||||
.RB [ "\-s" ]
|
.RB [ "\-s" ]
|
||||||
.RI [device(s)]
|
.RI [device(s)]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
@@ -35,6 +36,9 @@ select view mode
|
|||||||
\fB-p\fP
|
\fB-p\fP
|
||||||
sniff in promiscious mode (not recommended)
|
sniff in promiscious mode (not recommended)
|
||||||
.TP
|
.TP
|
||||||
|
\fB-a\fP
|
||||||
|
monitor all devices, even loopback/stopped ones
|
||||||
|
.TP
|
||||||
\fB-t\fP
|
\fB-t\fP
|
||||||
tracemode
|
tracemode
|
||||||
.TP
|
.TP
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ static void help(bool iserror) {
|
|||||||
// output << "usage: nethogs [-V] [-b] [-d seconds] [-t] [-p] [-f (eth|ppp))]
|
// output << "usage: nethogs [-V] [-b] [-d seconds] [-t] [-p] [-f (eth|ppp))]
|
||||||
// [device [device [device ...]]]\n";
|
// [device [device [device ...]]]\n";
|
||||||
output << "usage: nethogs [-V] [-h] [-b] [-d seconds] [-v mode] [-c count] "
|
output << "usage: nethogs [-V] [-h] [-b] [-d seconds] [-v mode] [-c count] "
|
||||||
"[-t] [-p] [-s] [device [device [device ...]]]\n";
|
"[-t] [-p] [-s] [-a] [device [device [device ...]]]\n";
|
||||||
output << " -V : prints version.\n";
|
output << " -V : prints version.\n";
|
||||||
output << " -h : prints this help.\n";
|
output << " -h : prints this help.\n";
|
||||||
output << " -b : bughunt mode - implies tracemode.\n";
|
output << " -b : bughunt mode - implies tracemode.\n";
|
||||||
@@ -41,7 +41,7 @@ static void help(bool iserror) {
|
|||||||
// eth.\n";
|
// eth.\n";
|
||||||
output << " -p : sniff in promiscious mode (not recommended).\n";
|
output << " -p : sniff in promiscious mode (not recommended).\n";
|
||||||
output << " -s : sort output by sent column.\n";
|
output << " -s : sort output by sent column.\n";
|
||||||
output << " -a : monitor all devices, even loopback/stopped ones.\n";
|
output << " -a : monitor all devices, even loopback/stopped ones.\n";
|
||||||
output << " device : device(s) to monitor. default is all "
|
output << " device : device(s) to monitor. default is all "
|
||||||
"interfaces up and running excluding loopback\n";
|
"interfaces up and running excluding loopback\n";
|
||||||
output << std::endl;
|
output << std::endl;
|
||||||
@@ -133,7 +133,7 @@ int main(int argc, char **argv) {
|
|||||||
bool all = false;
|
bool all = false;
|
||||||
|
|
||||||
int opt;
|
int opt;
|
||||||
while ((opt = getopt(argc, argv, "Vahbtpd:v:c:sa")) != -1) {
|
while ((opt = getopt(argc, argv, "Vhbtpsd:v:c:a")) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'V':
|
case 'V':
|
||||||
versiondisplay();
|
versiondisplay();
|
||||||
|
|||||||
Reference in New Issue
Block a user