]>
git.r.bdr.sh - rbdr/dotfiles/blob
29bfa8a6328866cbf104cb180bfd986f114e01e0
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>')
23 log(' Deletes all files and folders at "path" recursively.')
27 log(' -h, --help Display this usage info')
28 process
.exit(help
? 0 : 1)
30 args
.forEach(function(arg
) {