From 95b89e8e3432d2b57745edfbf073ac356521164b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 7 Jun 2021 01:39:50 +0100 Subject: [PATCH] prefs docs: Describe the prefs.toml format in the usage message Signed-off-by: Ian Jackson --- cli/otter.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cli/otter.rs b/cli/otter.rs index eb20af3a..f76f2d06 100644 --- a/cli/otter.rs +++ b/cli/otter.rs @@ -324,6 +324,11 @@ fn main() { }; let extra_help: ExtraMessage = &|w|{ + write!(w, r#" +PREFS is a TOML file containing a table [options]. The entries in options +are named after long command line options. The values are the corresponding +option values; or`true` and `false` for just --option or --no-option. +"#)?; writeln!(w, "\nSubcommands:")?; let maxlen = inventory::iter::.into_iter() .map(|Subcommand{verb,..}| verb.len()) -- 2.30.2