File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ Diff to Html generates pretty HTML diffs from unified and git diff output in you
6969 -o, --output Output destination [choices: "preview", "stdout"] [default: "preview"]
7070 -u, --diffy Upload to diffy.org [choices: "browser", "pbcopy", "print"]
7171 -F, --file Send output to file (overrides output option) [string]
72- -t , --template Path to custom template to be rendered when using the "html" output format [string]
72+ -w , --html-wrapper- template Path to custom template to be rendered when using the "html" output format [string]
7373 --version Show version number
7474 -h, --help Show help
7575
@@ -85,7 +85,7 @@ Diff to Html generates pretty HTML diffs from unified and git diff output in you
8585 -> print json format to stdout
8686 diff2html -F my-pretty-diff.html -- -M HEAD~1
8787 -> print to file
88- diff2html -F my-pretty-diff.html -t my-custom-template.html -- -M HEAD~1
88+ diff2html -F my-pretty-diff.html -w my-custom-template.html -- -M HEAD~1
8989 -> print to file using custom markup
9090 templates can include the following variables:
9191 `<!--diff2html-css-->` - writes default CSS to page
Original file line number Diff line number Diff line change @@ -130,8 +130,8 @@ var argv = yargs.usage('Usage: diff2html [options] -- [diff args]')
130130 }
131131 } )
132132 . options ( {
133- 't ' : {
134- alias : 'template' ,
133+ 'w ' : {
134+ alias : 'html-wrapper- template' ,
135135 describe : 'Use a custom template when generating markup' ,
136136 nargs : 1 ,
137137 type : 'string'
You can’t perform that action at this time.
0 commit comments