configuration.proxy.version = version from exaproxy.util.log.logger import Logger log = Logger('supervisor', configuration.log.supervisor) for arg in sys.argv[1:]: if arg in [ '--', ]: break if arg in ['-h', '--help']: help() sys.exit(0) if arg in ['-i', '-fi', '--ini']: ini() sys.exit(0) if arg in ['-e', '-fe', '--env']: env() sys.exit(0) if arg in ['-di', '--diff-ini']: ini(True) sys.exit(0) if arg in ['-de', '--diff-env']: env(True) sys.exit(0) if arg in ['-v', '--version']: version(configuration.proxy.version) sys.exit(0) if arg in ['-d', '--debug']: configuration.debug.log = True
print >> sys.stderr, 'configuration issue,', str(e) sys.exit(1) configuration.proxy.version = version from exaproxy.util.log.logger import Logger log = Logger('supervisor', configuration.log.supervisor) for arg in sys.argv[1:]: if arg in ['--',]: break if arg in ['-h','--help']: usage() sys.exit(0) if arg in ['-i','-fi','--ini']: ini() sys.exit(0) if arg in ['-e','-fe','--env']: env() sys.exit(0) if arg in ['-di','--diff-ini']: ini(True) sys.exit(0) if arg in ['-de','--diff-env']: env(True) sys.exit(0) if arg in ['-v','--version']: show_version(version) sys.exit(0) if arg in ['-d','--debug']: configuration.debug.log = True