Move hooke/test/default.000 -> test/data/picoforce.000
[hooke.git] / hooke / command.py
index 82ab53ffc85c62af267bdccbf1064d589423aec8..1cdb56f80f43647c63d4f9b198a2cc78e090bf93 100644 (file)
@@ -88,7 +88,7 @@ class Command (object):
         self.aliases = aliases
         self.arguments = [
             Argument(name='help', type='bool', default=False, count=1,
-                     callback=StoreValue(True), help='Print a help message.'),
+                     help='Print a help message.'),
             ] + arguments
         self._help = help
 
@@ -150,9 +150,9 @@ class Command (object):
                 if name != argument.name:
                     params.remove(name)
                     params[argument.name] = value
-                if argument.callback != None:
-                    value = argument.callback(hooke, self, argument, value)
-                    params[argument.name] = value
+            if argument.callback != None:
+                value = argument.callback(hooke, self, argument, value)
+                params[argument.name] = value
             argument.validate(value)
         return params