Explorar el Código

Increased detail on positional args error message

Luke hace 11 años
padre
commit
03ec8ddb4b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      supervisor/options.py

+ 1 - 1
supervisor/options.py

@@ -260,7 +260,7 @@ class Options:
 
         # Check for positional args
         if self.args and not self.positional_args_allowed:
-            self.usage("positional arguments are not supported")
+            self.usage("positional arguments are not supported: %s" % (str(self.args)))
 
         # Process options returned by getopt
         for opt, arg in self.options: