diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-03-11 23:24:00 (GMT) |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2016-03-11 23:24:00 (GMT) |
commit | 048ad189e16917b26c370669c9b978d9fd23bae2 (patch) | |
tree | 03718671c2673f15e91b4e7f5aaf708807e7af8e /src/browse.h | |
parent | f7491398a2e97c7c76d5a28cfb3b8ce1a0a1a580 (diff) | |
download | Ninja-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 'src/browse.h')
-rw-r--r-- | src/browse.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/browse.h b/src/browse.h index 263641f..842c6ff 100644 --- a/src/browse.h +++ b/src/browse.h @@ -19,9 +19,10 @@ struct State; /// Run in "browse" mode, which execs a Python webserver. /// \a ninja_command is the command used to invoke ninja. -/// \a initial_target is the first target to load. +/// \a args are the number of arguments to be passed to the Python script. +/// \a argv are arguments to be passed to the Python script. /// This function does not return if it runs successfully. void RunBrowsePython(State* state, const char* ninja_command, - const char* initial_target); + int argc, char* argv[]); #endif // NINJA_BROWSE_H_ |