summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds')
-rw-r--r--subcmds/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/subcmds/__init__.py b/subcmds/__init__.py
index 4e41afc0..0754f708 100644
--- a/subcmds/__init__.py
+++ b/subcmds/__init__.py
@@ -16,6 +16,7 @@ import os
16 16
17# A mapping of the subcommand name to the class that implements it. 17# A mapping of the subcommand name to the class that implements it.
18all_commands = {} 18all_commands = {}
19all_modules = []
19 20
20my_dir = os.path.dirname(__file__) 21my_dir = os.path.dirname(__file__)
21for py in os.listdir(my_dir): 22for py in os.listdir(my_dir):
@@ -42,6 +43,7 @@ for py in os.listdir(my_dir):
42 name = name.replace("_", "-") 43 name = name.replace("_", "-")
43 cmd.NAME = name 44 cmd.NAME = name
44 all_commands[name] = cmd 45 all_commands[name] = cmd
46 all_modules.append(mod)
45 47
46# Add 'branch' as an alias for 'branches'. 48# Add 'branch' as an alias for 'branches'.
47all_commands["branch"] = all_commands["branches"] 49all_commands["branch"] = all_commands["branches"]