From 7f381c666e6d43d1cc4c113916032d3d275919aa Mon Sep 17 00:00:00 2001 From: DustInDark Date: Thu, 16 Jun 2022 18:19:41 +0900 Subject: [PATCH] fixed help output with no option --- src/detections/configs.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/detections/configs.rs b/src/detections/configs.rs index e4a4e88f..e41c2b5b 100644 --- a/src/detections/configs.rs +++ b/src/detections/configs.rs @@ -216,14 +216,9 @@ impl ConfigReader<'_> { } else { 400 }; - let build_cmd = Config::command().term_width(help_term_width).help_template( - r#" - USAGE: - {usage} - - OPTIONS: -{options}"#, - ); + let build_cmd = Config::command() + .term_width(help_term_width) + .help_template("\n\nUSAGE:\n {usage}\n\nOPTIONS:\n{options}"); ConfigReader { app: build_cmd, args: parse,