Maciej Fijalkowski avatar Maciej Fijalkowski committed 83f40b7

make --server default, use --qt. Reason - unclean exit semantics in too many cases

Comments (0)

Files changed (1)

 #!/usr/bin/env pypy
 """ A web-based browser of your log files. Run by
 
-    jitviewer.py <path to your log file> [port] [--server]
+    jitviewer.py <path to your log file> [port] [--qt]
 
-By default, this script will also start a lightweight PyQT/QWebKit based
+By default the script will run a web server, point your browser to
+http://localhost:5000
+
+If you pass --qt, this script will also start a lightweight PyQT/QWebKit based
 browser pointing at the jitviewer.  This assumes that CPython is installed in
 /usr/bin/python, and that PyQT with WebKit support is installed.
 
-If you want to run only the server, you can pass the --server option.  In this
-case, you can access the jitviewer by visiting http://localhost:5000 with your
-favorite browser.
-
 Demo logfile available in this directory as 'log'.
 
 To produce the logfile for your program, run:
         print "Please run it using pypy-c"
         sys.exit(1)
     #
-    server_mode = False
-    if '--server' in sys.argv:
-        server_mode = True
-        sys.argv.remove('--server')
+    server_mode = True
+    if '--qt' in sys.argv:
+        server_mode = False
+        sys.argv.remove('--qt')
     #
     if len(sys.argv) != 2 and len(sys.argv) != 3:
         print __doc__
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.