From 338a52f9725832759d17b95c7740e581176f7c51 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Sat, 15 Feb 2020 17:29:02 -0800 Subject: [PATCH] update interval cli arg usage --- README.md | 4 ++-- src/args.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 586a0af..821017c 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,6 @@ OPTIONS: -c, --colorscheme Set a colorscheme [default: default] -i, --interfaces Comma separated list of network interfaces to show. Prepend an interface with '!' to hide it. 'all' shows all interfaces [default: !tun0] - --interval Duration of interval in seconds between updates of the CPU and Mem widgets - [default: 1] + --interval Interval in seconds between updates of the CPU and Mem widgets. Can specify + either a whole number or a fraction with a numerator of 1 [default: 1] ``` diff --git a/src/args.rs b/src/args.rs index 7d60e7f..470f532 100644 --- a/src/args.rs +++ b/src/args.rs @@ -36,7 +36,7 @@ pub struct Args { #[structopt(short = "i", long = "interfaces", default_value = "!tun0")] pub interfaces: String, - /// Duration of interval in seconds between updates of the CPU and Mem widgets. + /// Interval in seconds between updates of the CPU and Mem widgets. Can specify either a whole number or a fraction with a numerator of 1. #[structopt(long = "interval", default_value = "1")] pub interval: Ratio,