Commits

Ian Bicking  committed 717c359

Add an error check, --daemon and --reload cannot be used together (http://trac.pythonpaste.org/pythonpaste/ticket/293)

  • Participants
  • Parent commits a115d42

Comments (0)

Files changed (2)

 syntax: glob
 *.egg-info/
+build/
+dist/

File paste/script/serve.py

                 cmd = None
                 restvars = self.args[:]
 
+        if (getattr(self.options, 'daemon', False)
+            and getattr(self.options, 'reload', False)):
+            raise BadCommand('The --daemon and --reload options may not be used together')
+
         jython_monitor = False
         if self.options.reload:
             if jython and not self.options.disable_jython_reloader: