From f40a1a1b3ffc088824675efc4126d659c0928298 Mon Sep 17 00:00:00 2001 From: Paul Young Date: Sat, 21 Sep 2013 00:07:30 -0400 Subject: [PATCH] Closes #4: Binary now outputs files array by default. --- bin/jade-inheritance | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/jade-inheritance b/bin/jade-inheritance index 18ee667..901c6ed 100755 --- a/bin/jade-inheritance +++ b/bin/jade-inheritance @@ -9,7 +9,7 @@ program .version(pjson.version) .usage(' ') .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); @@ -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));