From 64027a5ee429c081c5d51fda7ea14ed1edf8d761 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Mon, 17 Sep 2018 17:46:48 -0500 Subject: [PATCH] --nobrowser cli option --- cmd/cmd.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/cmd.js b/cmd/cmd.js index ea415d4a2..677430693 100644 --- a/cmd/cmd.js +++ b/cmd/cmd.js @@ -168,6 +168,7 @@ class Cmd { .option('-b, --host [host]', __('host to run the dev webserver (default: %s)', 'localhost')) .option('--noserver', __('disable the development webserver')) .option('--nodashboard', __('simple mode, disables the dashboard')) + .option('--nobrowser', __('prevent the development webserver from opening your default web browser')) .option('--no-color', __('no colors in case it\'s needed for compatbility purposes')) .option('--logfile [logfile]', __('filename to output logs (default: %s)', 'none')) .option('--loglevel [loglevel]', __('level of logging to display') + ' ["error", "warn", "info", "debug", "trace"]', /^(error|warn|info|debug|trace)$/i, 'debug') @@ -187,7 +188,8 @@ class Cmd { useDashboard: !options.nodashboard, logFile: options.logfile, logLevel: options.loglevel, - webpackConfigName: options.pipeline || 'development' + webpackConfigName: options.pipeline || 'development', + openBrowser: options.nobrowser == null ? null : !options.nobrowser, }); }); }