Explorar el Código

Merge pull request #479 from lwoydziak/master

Increased detail on positional args error message
Mike Naberezny hace 10 años
padre
commit
65bbd5cdeb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      supervisor/options.py

+ 1 - 1
supervisor/options.py

@@ -272,7 +272,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: