From c8b07e489c14ab3bc4fda642bb8bb0d2e986fc06 Mon Sep 17 00:00:00 2001 From: Graeme Nail Date: Mon, 7 Feb 2022 11:50:53 +0000 Subject: [PATCH] Reinstate usage --- _scripts/generate_cli_md.py | 1 + docs/cmd/_template.tmp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/_scripts/generate_cli_md.py b/_scripts/generate_cli_md.py index 48cfa6432..fd2b72541 100755 --- a/_scripts/generate_cli_md.py +++ b/_scripts/generate_cli_md.py @@ -75,6 +75,7 @@ def parse_help(help_file): # Set usage mode if line.startswith("Usage:"): mode = 1 + line = line.replace("Usage: ","") # Set options mode if line.strip().endswith("options:"): diff --git a/docs/cmd/_template.tmp b/docs/cmd/_template.tmp index 6d89fbaf2..88b39dcb3 100644 --- a/docs/cmd/_template.tmp +++ b/docs/cmd/_template.tmp @@ -10,6 +10,8 @@ icon: fa-file-code-o Version: {version} +Usage: `{usage}` + {options} {examples}