fixed help output with no option

This commit is contained in:
DustInDark
2022-06-16 18:19:41 +09:00
parent 45484abea7
commit 7f381c666e

View File

@@ -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,