Skip to content

Commit d5d6fa7

Browse files
Changing flag name to avoid confusion with html2diff's --template (-t) flag
1 parent b9211ab commit d5d6fa7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)