Skip to content

Commit

Permalink
Closes #4: Binary now outputs files array by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyoung committed Sep 21, 2013
1 parent d5a5f90 commit f40a1a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/jade-inheritance
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ program
.version(pjson.version)
.usage('<jade file> <directory>')
.option('--basedir [string]', 'Required for includes and extends that use absolute paths.')
.option('--files', 'Instead of the inheritance tree, print an array containing the files which would be affected by a change in the input file.')
.option('--tree', 'Instead of an array containing the files which would be affected by a change in the input file, print the inheritance tree.')
.parse(process.argv);


Expand All @@ -33,5 +33,5 @@ options.basedir = program.basedir || directory;


var inheritance = new JadeInheritance(filename, directory, options);
var output = program.files ? inheritance.files : inheritance.tree;
var output = program.tree ? inheritance.tree : inheritance.files;
console.log(JSON.stringify(output, null, 2));

0 comments on commit f40a1a1

Please sign in to comment.