]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - run.py
correct spelling of licence
[irc/quakenet/qwebirc.git] / run.py
diff --git a/run.py b/run.py
index eb2167910b613baf394b1b0e1f043b6045e2b48c..2d44a3aea6e42385d3c39d4d736290d31cdf7237 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -40,6 +40,8 @@ parser.add_option("-k", "--key", help="Path to SSL key.", dest="sslkey")
 parser.add_option("-H", "--certificate-chain", help="Path to SSL certificate chain file.", dest="sslchain")
 parser.add_option("-P", "--pidfile", help="Path to store PID file", dest="pidfile")
 parser.add_option("-s", "--syslog", help="Log to syslog", action="store_true", dest="syslog", default=False)
+parser.add_option("--profile", help="Run in profile mode, dumping results to this file", dest="profile")
+parser.add_option("--profiler", help="Name of profiler to use", dest="profiler")
 parser.add_option("--syslog-prefix", help="Syslog prefix", dest="syslog_prefix", default="qwebirc")
 
 sargs = sys.argv[1:]
@@ -65,6 +67,11 @@ if options.pidfile:
   args1+=["--pidfile", options.pidfile]
 if options.syslog:
   args1+=["--syslog"]
+if options.profile:
+  args1+=["--profile", options.profile]
+if options.profiler:
+  args1+=["--profiler", options.profiler]
+
 if options.syslog and options.syslog_prefix:
   import syslog
   syslog.openlog(options.syslog_prefix)