# HG changeset patch # User Christophe de Vienne # Date 1411149333 -7200 # Node ID 3d4e7be2e3c3de881e42eacf649ea53227637a46 # Parent e45e4999dc98540f774120ea2278540b91029e96 Add a --no-daemon option diff -r e45e4999dc98 -r 3d4e7be2e3c3 ccplugin.py --- a/ccplugin.py Fri Sep 19 19:20:35 2014 +0200 +++ b/ccplugin.py Fri Sep 19 19:55:33 2014 +0200 @@ -37,9 +37,13 @@ name = 'pyramid' options = ( - ("debug", + ('no-daemon', + {'action': 'store_true', + 'help': 'Run the server in the foreground.'}), + ('debug', {'short': 'D', 'action': 'store_true', - 'help': 'start server in the foreground.'}), + 'help': 'Activate the debug tools and ' + 'run the server in the foreground.'}), ('reload', {'action': 'store_true', 'help': 'Restart the server if any source file is changed'}), @@ -254,7 +258,7 @@ filelist_path=os.environ.get( self._reloader_filelist_environ_key)) - if not self['reload'] and not self['debug']: + if not (self['no-daemon'] or self['reload'] or self['debug']): self.daemonize(cwconfig['pid-file']) self.record_pid(cwconfig['pid-file'])