File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " diff2html-cli" ,
3
- "version" : " 1.4.0 " ,
3
+ "version" : " 1.4.1 " ,
4
4
"homepage" : " https://www.github.com/rtfpessoa/diff2html-cli" ,
5
5
"description" : " Fast Diff to colorized HTML" ,
6
6
"keywords" : [
Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ var cli = require('./cli.js').Diff2HtmlInterface;
11
11
var log = require ( './logger.js' ) . Logger ;
12
12
var utils = require ( './utils.js' ) . Utils ;
13
13
14
- var argv = require ( 'yargs' )
15
- . usage ( 'Usage: diff2html [options] -- [diff args]' )
14
+ var yargs = require ( 'yargs' ) ;
15
+
16
+ var argv = yargs . usage ( 'Usage: diff2html [options] -- [diff args]' )
16
17
. options ( {
17
18
's' : {
18
19
alias : 'style' ,
@@ -138,7 +139,7 @@ function onInput(err, input) {
138
139
139
140
if ( ! input ) {
140
141
log . error ( 'The input is empty. Try again.' ) ;
141
- argv . help ( ) ;
142
+ yargs . showHelp ( "log" ) ;
142
143
}
143
144
144
145
if ( argv . diffy ) {
You can’t perform that action at this time.
0 commit comments