Skip to content

Commit 849cb2c

Browse files
Use chokidar command explicitly in help messages to make them more readable in Windows
1 parent 631e2e3 commit 849cb2c

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
@@ -33,15 +33,15 @@ var VERSION = 'chokidar-cli: ' + require('./package.json').version +
3333

3434
var argv = require('yargs')
3535
.usage(
36-
'Usage: $0 <pattern> [<pattern>...] [options]\n\n' +
36+
'Usage: chokidar <pattern> [<pattern>...] [options]\n\n' +
3737
'<pattern>:\n' +
3838
'Glob pattern to specify files to be watched.\n' +
3939
'Multiple patterns can be watched by separating patterns with spaces.\n' +
4040
'To prevent shell globbing, write pattern inside quotes.\n' +
4141
'Guide to globs: https://github.com/isaacs/node-glob#glob-primer\n'
4242
)
43-
.example('$0 "**/*.js" -c "npm run build-js"', 'build when any .js file changes')
44-
.example('$0 "**/*.js" "**/*.less"', 'output changes of .js and .less files')
43+
.example('chokidar "**/*.js" -c "npm run build-js"', 'build when any .js file changes')
44+
.example('chokidar "**/*.js" "**/*.less"', 'output changes of .js and .less files')
4545
.demand(1)
4646
.option('c', {
4747
alias: 'command',

0 commit comments

Comments
 (0)