Commits

Jan Borsodi committed 9e81728

Fixed: Config entries are loaded for all commands, should only happen for current command.

Comments (0)

Files changed (1)

         """
         if self._command:
             self._command.loadconfig(config, opts, group="global")
-        for command in self:
-            command.loadconfig(config, opts)
+        if getattr(opts, "command", None):
+            for command in self:
+                if command.name == opts.command:
+                    command.loadconfig(config, opts)
+                    break
 
     def options(self, opts=None, **kwargs):
         """Decorator which registers global options.