summaryrefslogtreecommitdiff
path: root/docs/commands.rst
diff options
context:
space:
mode:
authorYu ISHIKAWA <yuu.ishikawa@gmail.com>2019-01-07 16:40:32 -0800
committerYu ISHIKAWA <yuu.ishikawa@gmail.com>2019-01-07 16:40:32 -0800
commit87c03cb57c2b9525500a2396c359627ce854eb80 (patch)
tree3dff94c99b22322343c842a9bf3b13eaefcc0acf /docs/commands.rst
parent71938765f97d28555af547ff1e19df645714d83c (diff)
downloadclick-87c03cb57c2b9525500a2396c359627ce854eb80.tar.gz
Modify the code about the custom multi commands.
Diffstat (limited to 'docs/commands.rst')
-rw-r--r--docs/commands.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/commands.rst b/docs/commands.rst
index 53834f7..4642e74 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