mkdocs / mkdocs-click

An MkDocs extension to generate documentation for Click command line applications
https://pypi.org/project/mkdocs-click
Apache License 2.0
109 stars 16 forks source link

Multi-command modules not display correctly #42

Closed jochman closed 1 year ago

jochman commented 3 years ago

There's a problem with a multi command module. I've use demisto-sdk and found it.

When importing a command, the module is not in the command name.

using the module above: format command: filename: docs/commands/format.md

::: mkdocs-click
    :module: demisto_sdk.__main__
    :command: format

display: image

The usage should be demisto-sdk format. Is there a way to explicit the name of the command? I can't use prog_name as it not accepting spaces.