Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 151bc29

Browse files
committedJul 28, 2019
Clarify CLI help, eg. missing is no longer default
1 parent 08cfb69 commit 151bc29

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎cli.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ if (args.version) {
3030
}
3131

3232
if (args.help || args._.length === 0) {
33-
console.log('\nUsage: dependency-check <path to module files, package.json or module folder> <additional entries to add> <options>')
34-
33+
console.log('\nUsage: dependency-check <path to entry file, package.json or module folder> <additional entry paths to add> <options>')
34+
console.log('\nEntry paths supports globbing for easy adding of eg. entire folders.')
3535
console.log('\nOptions:')
36-
console.log('--missing (default) Check to make sure that all modules in your code are listed in your package.json')
37-
console.log('--unused The inverse of the --missing check and will tell you which modules in your package.json *were not* used in your code')
36+
console.log('--missing Only check to make sure that all modules in your code are listed in your package.json')
37+
console.log('--unused Only check which modules listed in your package.json *are not* used in your code')
3838
console.log("--no-dev Won't tell you about devDependencies that are missing or unused")
3939
console.log("--no-peer Won't tell you about peerDependencies that are missing or unused")
4040
console.log("--ignore-module, -i Won't tell you about these module names when missing or unused. Supports globbing")
@@ -44,7 +44,7 @@ if (args.help || args._.length === 0) {
4444
console.log("--extensions, -e List of file extensions with detective to use when resolving require paths. Eg. 'js,jsx:detective-es6'")
4545
console.log('--version Show current version')
4646
console.log('--ignore To always exit with code 0 pass --ignore')
47-
console.log('--verbose Enable logging of success')
47+
console.log('--verbose Enable logging of eg. success message')
4848
console.log('')
4949

5050
process.exit(1)

0 commit comments

Comments
 (0)
This repository has been archived.