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}