summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2016-03-11 23:24:00 (GMT)
committerPeter Wu <peter@lekensteyn.nl>2016-03-11 23:24:00 (GMT)
commit048ad189e16917b26c370669c9b978d9fd23bae2 (patch)
tree03718671c2673f15e91b4e7f5aaf708807e7af8e /doc
parentf7491398a2e97c7c76d5a28cfb3b8ce1a0a1a580 (diff)
downloadNinja-048ad189e16917b26c370669c9b978d9fd23bae2.zip
Ninja-048ad189e16917b26c370669c9b978d9fd23bae2.tar.gz
Ninja-048ad189e16917b26c370669c9b978d9fd23bae2.tar.bz2
browse: support --port and --no-browser options
Add --port option to override the default port (8000). Add --no-browser option to avoid opening a web browser (useful over SSH). Make the target name optional, using "all" if omitted.
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.asciidoc10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/manual.asciidoc b/doc/manual.asciidoc
index 4e69ad4..9fc5fb9 100644
--- a/doc/manual.asciidoc
+++ b/doc/manual.asciidoc
@@ -223,9 +223,13 @@ found useful during Ninja's development. The current tools are:
`browse`:: browse the dependency graph in a web browser. Clicking a
file focuses the view on that file, showing inputs and outputs. This
-feature requires a Python installation. The `PORT` environment variable
-can be used to override the default port number (8000).
-
+feature requires a Python installation. By default port 8000 is used
+and a web browser will be opened. This can be changed as follows:
++
+----
+ninja -t browse --port=8000 --no-browser mytarget
+----
++
`graph`:: output a file in the syntax used by `graphviz`, a automatic
graph layout tool. Use it like:
+