Skip to content

Commit 1c7a8ae

Browse files
author
whyboris
committed
-v version alias
1 parent 7f5ad14 commit 1c7a8ae

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

7777
Examples:

src/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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' +

0 commit comments

Comments
 (0)