Fix bug in hooke.ui.commandline.DoCommand._check_argument_length() max_arg calculation.
authorW. Trevor King <wking@drexel.edu>
Thu, 13 May 2010 10:55:29 +0000 (06:55 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 13 May 2010 10:55:29 +0000 (06:55 -0400)
hooke/ui/commandline.py
test/data/test.hkp

index 6767cb4356cb34014fa6b69ac50d8b32a19a448e..57263dba9219a75a7e9c3379ab26988addd3fa87 100644 (file)
@@ -127,7 +127,7 @@ class DoCommand (CommandMethod):
         If not, raise optparse.OptParseError().
         """
         min_args = 0
-        max_args = -1
+        max_args = 0
         for argument in self.parser.command_args:
             if argument.optional == False and argument.count > 0:
                 min_args += argument.count
index 7a6c881fcf65a8354431d12f643f60cbd2175928..b104aecb54707fb798ec7b1574f191a77775c5b1 100644 (file)
@@ -1,5 +1,4 @@
 <?xml version="1.0" encoding="utf-8"?>
-<playlist>
-  <generics pointer="0"/>
-  <curve notes="" path="default.000"/>
+<playlist index="0" version="0.1">
+  <curve note="" path="default.000"/>
 </playlist>