diff --git a/README.md b/README.md index d4a426e..543244f 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,7 @@ Options: --mock Path to code to handle requests for mocking a dynamic back-end --input Input type. Defaults to 'javascript', can be set to 'html'. --node Enable nodejs apis in electron + --show Show browser window if browser is electron --basedir Set this if you need to require node modules in node mode --help Print help ``` @@ -98,6 +99,7 @@ Returns a duplex stream and starts a webserver. * `mock`: Path to code to handle requests for mocking a dynamic back-end * `input`: Input type. Defaults to `javascript`, can be set to `html`. * `node`: Enable nodejs integration in electron +* `show`: Show browser window if browser is electron * `basedir`: Set this if you need to require node modules in `node` mode If only an empty string is written to it, an error will be thrown as there is nothing to execute. diff --git a/bin/bin.js b/bin/bin.js index 98ebf20..60313a1 100755 --- a/bin/bin.js +++ b/bin/bin.js @@ -32,6 +32,9 @@ var argv = optimist .describe('node', 'Enable nodejs apis in electron') .alias('n', 'node') + .describe('show', 'Show browser window if browser is electron') + .alias('w', 'show') + .describe('basedir', 'Set this if you need to require node modules in node mode') .describe('help', 'Print help')