mirror of
https://github.com/onyx-and-iris/vban-cli.git
synced 2026-03-02 21:19:11 +00:00
update regex to parse multiple subcommands
This commit is contained in:
parent
a945fccda9
commit
214116bf97
@ -15,7 +15,7 @@ class CustomHelpFormatter(DefaultFormatter):
|
||||
"""Render the usage line with index argument injected."""
|
||||
if usage:
|
||||
modified_usage = re.sub(
|
||||
r'(\S+\s+strip)\s+(COMMAND)', r'\1 <index> \2', str(usage)
|
||||
r'(\S+\s+[a-z]+)\s+(COMMAND)', r'\1 <index> \2', str(usage)
|
||||
)
|
||||
console.print(f'[bold]Usage:[/bold] {modified_usage}')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user