Commits

Anonymous committed fd763cf

fixeado error grabe de orden de callbacks

Comments (0)

Files changed (1)

 # META
 #===============================================================================
 
-__version__ = ("0", "2")
+__version__ = ("0", "2", "1")
 __license__ = "WISKEY License"
 __author__ = "JBC"
 __email__ = "jbc dot develop at gmail dot com"
             return nt(**d)
 
         flags = self.parse_args(args)
-        returns = dict((k, None) for k in vars(flags).keys())
-        for k, v in vars(flags).items():
-            if v and k in self._callbacks:
+        flags_dict = vars(flags)
+        returns = dict((k, None) for k in flags_dict.keys())
+        for k, v in self._callbacks.items():
+            if k in flags_dict and flags_dict[k]:
                 callback, exit = self._callbacks[k]
                 returns[k] = callback(flags,
                                       dict2namedtuple("Returns", returns))