]> git.seodisparate.com - swaybar_info/commitdiff
Update help text
authorStephen Seo <seo.disparate@gmail.com>
Tue, 12 Jul 2022 08:53:17 +0000 (17:53 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Tue, 12 Jul 2022 08:53:17 +0000 (17:53 +0900)
src/args.rs

index 31a29552d1d6ab6f18130d67fd69a98e7ac39add..bc60216d5c3a4589a782ad033d63ee8cd4480510 100644 (file)
@@ -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=<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")
+        .write_all(
+            b"  --interval-sec=<seconds>\t\t\t\tOutput at intervals of <seconds> (default 5)\n",
+        )
         .ok();
     stderr_handle
         .write_all(
-            b"  --regex-cmd=<cmd>,<args...>,<regex>\tUse an output of a command as a metric\n",
+            b"  --regex-cmd=<cmd>[SPLIT]<args...>[SPLIT]<regex>\tUse an output of a command as a metric\n",
         )
         .ok();
 }