Skip to content

Commit a2ad232

Browse files
committed
show help if we don't supply args with cli
1 parent 9dbad6c commit a2ad232

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,6 @@ yargs
4747
})
4848
.alias('h', 'help')
4949
.help('help')
50+
.demandCommand(1, '')
51+
.showHelpOnFail(true)
5052
.wrap(null).argv;

0 commit comments

Comments
 (0)