File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ var plugin = require('shelljs/plugin');
55var child = require ( 'child_process' ) ;
66var fs = require ( 'fs' ) ;
77
8- // Implement your command in a function, which takes an options string as the
9- // first parameter
8+ // Implement your command in a function, which accepts ` options` as the
9+ // first parameter, and other arguments after that
1010function open ( options , fileName ) {
1111 var URL_REGEX = / ^ h t t p s ? : \/ \/ .* / ;
1212
@@ -29,7 +29,7 @@ function open(options, fileName) {
2929// Register the new plugin as a ShellJS command
3030plugin . register ( 'open' , open , {
3131 globStart : 1 , // Start globbing at the first non-option argument
32- cmdOptions : { } , // No supported options
32+ cmdOptions : { } , // There are no supported options for this command
3333 wrapOutput : true , // Wrap the output in a ShellString
3434} ) ;
3535
You can’t perform that action at this time.
0 commit comments