File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ Usage: diff2html [options] -- [diff args]
7171| -o | --output | Output destination | ` preview ` , ` stdout ` | ` preview ` |
7272| -u | --diffy | Upload to diffy.org | ` browser ` , ` pbcopy ` , ` print ` | |
7373| -F | --file | Send output to file (overrides output option) | _ [ string] _ | |
74- | --version | | Show version number | | |
74+ | -v | - -version | | Show version number | | |
7575| -h | --help | Show help | | |
7676
7777Examples:
Original file line number Diff line number Diff line change @@ -153,8 +153,10 @@ var argv = yargs.usage('Usage: diff2html [options] -- [diff args]')
153153 . example ( 'diff2html -i file -- my-file-diff.diff' , 'reading the input from a file' )
154154 . example ( 'diff2html -f json -o stdout -- -M HEAD~1' , 'print json format to stdout' )
155155 . example ( 'diff2html -F my-pretty-diff.html -- -M HEAD~1' , 'print to file' )
156- . example ( 'diff2html -ig -- package-lock.json yarn.lock' , 'ignore two particular files when generating diff' )
156+ . example ( 'diff2html -ig -- package-lock.json yarn.lock' ,
157+ 'ignore two particular files when generating the diff' )
157158 . help ( 'h' )
159+ . alias ( 'v' , 'version' )
158160 . alias ( 'h' , 'help' )
159161 . epilog ( '© 2014-' + currentYear + ' rtfpessoa\n' +
160162 'For more information, check out https://diff2html.xyz/\n' +
You can’t perform that action at this time.
0 commit comments