File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -60,5 +60,6 @@ if (program.args.length == 0) {
6060if ( err ) {
6161 var p = require ( 'process' )
6262 console . log ( err )
63+ program . outputHelp ( )
6364 p . exit ( 2 )
6465}
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ tlib.test('help', (t) => {
2727tlib . test ( 'no command fails' , ( t ) => {
2828 const cmd = tlib . spawn ( t , './bin/gapps' )
2929 cmd . stdout . match ( 'No command specified\n' )
30+ cmd . stdout . match ( / U s a g e : / )
3031 if ( tape_spawn_fixed )
3132 cmd . fails ( )
3233 cmd . end ( )
@@ -35,6 +36,7 @@ tlib.test('no command fails', (t) => {
3536tlib . test ( 'bad commands fail' , ( t ) => {
3637 const cmd = tlib . spawn ( t , './bin/gapps rubbish' )
3738 cmd . stdout . match ( 'Bad command specified\n' )
39+ cmd . stdout . match ( / U s a g e : / )
3840 if ( tape_spawn_fixed )
3941 cmd . fails ( )
4042 cmd . end ( )
You can’t perform that action at this time.
0 commit comments