From b4199bd72678fd4bcfd712b211e326364c007e86 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 12 Jul 2022 17:53:17 +0900 Subject: [PATCH] Update help text --- src/args.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/args.rs b/src/args.rs index 31a2955..bc60216 100644 --- a/src/args.rs +++ b/src/args.rs @@ -42,17 +42,19 @@ pub fn print_usage() { let mut stderr_handle = io::stderr().lock(); stderr_handle.write_all(b"Usage:\n").ok(); 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(); stderr_handle - .write_all(b" --netdev=\t\tCheck network traffic on specified device\n") - .ok(); - stderr_handle - .write_all(b" --interval-sec=\t\tOutput at intervals of (default 5)\n") + .write_all(b" --netdev=\t\t\t\tCheck network traffic on specified device\n") .ok(); stderr_handle .write_all( - b" --regex-cmd=,,\tUse an output of a command as a metric\n", + b" --interval-sec=\t\t\t\tOutput at intervals of (default 5)\n", + ) + .ok(); + stderr_handle + .write_all( + b" --regex-cmd=[SPLIT][SPLIT]\tUse an output of a command as a metric\n", ) .ok(); }