File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ if (argv.h || argv.help) {
20
20
" -e --ext Default file extension if none supplied [none]" ,
21
21
" -s --silent Suppress log messages from output" ,
22
22
" --cors Enable CORS via the 'Access-Control-Allow-Origin' header" ,
23
- " -o Open browser window after staring the server" ,
23
+ " -o [path] Open browser window after starting the server" ,
24
24
" -c Cache time (max-age) in seconds [3600], e.g. -c10 for 10 seconds." ,
25
25
" To disable caching, use -c-1." ,
26
26
"" ,
@@ -102,7 +102,10 @@ function listen(port) {
102
102
103
103
log ( 'Hit CTRL-C to stop the server' ) ;
104
104
if ( argv . o ) {
105
- opener ( protocol + '//' + canonicalHost + ':' + port ) ;
105
+ opener (
106
+ protocol + '//' + canonicalHost + ':' + port ,
107
+ { command : argv . o !== true ? argv . o : null }
108
+ ) ;
106
109
}
107
110
} ) ;
108
111
}
You can’t perform that action at this time.
0 commit comments