diff options
Diffstat (limited to 'subcmds')
-rw-r--r-- | subcmds/__init__.py | 2 |
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. |
18 | all_commands = {} | 18 | all_commands = {} |
19 | all_modules = [] | ||
19 | 20 | ||
20 | my_dir = os.path.dirname(__file__) | 21 | my_dir = os.path.dirname(__file__) |
21 | for py in os.listdir(my_dir): | 22 | for 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'. |
47 | all_commands["branch"] = all_commands["branches"] | 49 | all_commands["branch"] = all_commands["branches"] |