diff options
author | David Lord <davidism@gmail.com> | 2020-02-23 18:38:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-23 18:38:29 -0800 |
commit | 289913bb608994558ac9132a9f2eefb6bc2c8b7d (patch) | |
tree | 2a07ab972327b8b247aff2f23f9e73b2ede01f3b /docs/commands.rst | |
parent | 8b971f73743aa3bec1f09414377d3d01369de1bd (diff) | |
parent | 87c03cb57c2b9525500a2396c359627ce854eb80 (diff) | |
download | click-289913bb608994558ac9132a9f2eefb6bc2c8b7d.tar.gz |
Merge pull request #1201 from yu-iskw/modify-doc
Modify the code about the custom multi commands.
Diffstat (limited to 'docs/commands.rst')
-rw-r--r-- | docs/commands.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/commands.rst b/docs/commands.rst index 8405536..da26ac0 100644 --- a/docs/commands.rst +++ b/docs/commands.rst @@ -202,7 +202,7 @@ A custom multi command just needs to implement a list and load method: def list_commands(self, ctx): rv = [] for filename in os.listdir(plugin_folder): - if filename.endswith('.py'): + if filename.endswith('.py') and filename != '__init__.py': rv.append(filename[:-3]) rv.sort() return rv |