Skip to content

Commit ab68eb2

Browse files
committed
Default to current directory if no paths are specified
1 parent a288b59 commit ab68eb2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bin/buddy

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,7 @@ if (fs.existsSync(rcPath) && fs.lstatSync(rcPath).isFile()) {
4242
}
4343

4444
// Assume all unconsumed arguments are paths
45-
var suppliedPaths = program.args || [];
46-
if (!suppliedPaths.length) {
47-
console.log('Please provide a list of filenames or directories');
48-
process.exit(0);
49-
}
45+
var suppliedPaths = (program.args.length) ? program.args : ['.'];
5046

5147
// chalk doesn't support short flags by default
5248
if (!program.color) {

0 commit comments

Comments
 (0)