Update help text
This commit is contained in:
parent
3f1b7df7f4
commit
b4199bd726
1 changed files with 8 additions and 6 deletions
14
src/args.rs
14
src/args.rs
|
@ -42,17 +42,19 @@ pub fn print_usage() {
|
||||||
let mut stderr_handle = io::stderr().lock();
|
let mut stderr_handle = io::stderr().lock();
|
||||||
stderr_handle.write_all(b"Usage:\n").ok();
|
stderr_handle.write_all(b"Usage:\n").ok();
|
||||||
stderr_handle
|
stderr_handle
|
||||||
.write_all(b" -h | --help\t\t\t\tPrints help\n")
|
.write_all(b" -h | --help\t\t\t\t\t\tPrints help\n")
|
||||||
.ok();
|
.ok();
|
||||||
stderr_handle
|
stderr_handle
|
||||||
.write_all(b" --netdev=<device_name>\t\tCheck network traffic on specified device\n")
|
.write_all(b" --netdev=<device_name>\t\t\t\tCheck network traffic on specified device\n")
|
||||||
.ok();
|
|
||||||
stderr_handle
|
|
||||||
.write_all(b" --interval-sec=<seconds>\t\tOutput at intervals of <seconds> (default 5)\n")
|
|
||||||
.ok();
|
.ok();
|
||||||
stderr_handle
|
stderr_handle
|
||||||
.write_all(
|
.write_all(
|
||||||
b" --regex-cmd=<cmd>,<args...>,<regex>\tUse an output of a command as a metric\n",
|
b" --interval-sec=<seconds>\t\t\t\tOutput at intervals of <seconds> (default 5)\n",
|
||||||
|
)
|
||||||
|
.ok();
|
||||||
|
stderr_handle
|
||||||
|
.write_all(
|
||||||
|
b" --regex-cmd=<cmd>[SPLIT]<args...>[SPLIT]<regex>\tUse an output of a command as a metric\n",
|
||||||
)
|
)
|
||||||
.ok();
|
.ok();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue