3 var rimraf = require('./')
7 var args = process.argv.slice(2).filter(function(arg) {
10 else if (arg === '--')
12 else if (arg.match(/^(-+|\/)(h(elp)?|\?)$/))
18 if (help || args.length === 0) {
19 // If they didn't ask for help, then this is not a "success"
20 var log = help ? console.log : console.error
21 log('Usage: rimraf <path> [<path> ...]')
23 log(' Deletes all files and folders at "path" recursively.')
27 log(' -h, --help Display this usage info')
28 process.exit(help ? 0 : 1)
35 rimraf(args[n], function (er) {