Skip to content

Commit 7870b04

Browse files
committed
fix bug where adr-log would always show help
1 parent 444d29e commit 7870b04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var args = utils.minimist(process.argv.slice(2), {
1717
});
1818

1919

20-
if (!args.d || !args.f || args.h) {
20+
if (!args.d && !args.f && !args.i || args.h) {
2121
console.error([
2222
'Usage: adr-toc [-i] [-d <directory>] [-f <file>]',
2323
'',

0 commit comments

Comments
 (0)