Skip to content

Commit 7d1fda2

Browse files
committed
doc: update comments
1 parent 917eee8 commit 7d1fda2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ var plugin = require('shelljs/plugin');
55
var child = require('child_process');
66
var 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
1010
function open(options, fileName) {
1111
var URL_REGEX = /^https?:\/\/.*/;
1212

@@ -29,7 +29,7 @@ function open(options, fileName) {
2929
// Register the new plugin as a ShellJS command
3030
plugin.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

0 commit comments

Comments
 (0)