@@ -70,25 +70,30 @@ npm install -g diff2html-cli
7070
7171Usage: diff2html [ flags and/or options ] -- [ git diff passthrough flags and options]
7272
73- | flag | alias | description | choices | default |
74- | ----- | ------------------------ | -------------------------------------------------------------------------- | ---------------------------- | --------- |
75- | -s | --style | Output style | ` line ` , ` side ` | ` line ` |
76- | --sc | --synchronisedScroll | Synchronised horizontal scroll | ` true ` , ` false ` | ` true ` |
77- | --hc | --highlightCode | Highlight code | ` true ` , ` false ` | ` true ` |
78- | --su | --summary | Show files summary | ` closed ` , ` open ` , ` hidden ` | ` closed ` |
79- | -d | --diffStyle | Diff style | ` word ` , ` char ` | ` word ` |
80- | --lm | --matching | Diff line matching type | ` lines ` , ` words ` , ` none ` | ` none ` |
81- | --lmt | --matchWordsThreshold | Diff line matching word threshold | | ` 0.25 ` |
82- | --lmm | --matchingMaxComparisons | Diff line matching maximum line comparisons of a block of changes | ` 2500 ` |
83- | --hwt | --htmlWrapperTemplate | Path to custom template to be rendered when using the ` html ` output format | ` [string] ` |
84- | -f | --format | Output format | ` html ` , ` json ` | ` html ` |
85- | -i | --input | Diff input source | ` file ` , ` command ` , ` stdin ` | ` command ` |
86- | -o | --output | Output destination | ` preview ` , ` stdout ` | ` preview ` |
87- | -u | --diffy | Upload to diffy.org | ` browser ` , ` pbcopy ` , ` print ` | |
88- | -F | --file | Send output to file (overrides output option) | ` [string] ` | |
89- | --ig | --ignore | Ignore particular files from the diff | ` [string] ` | |
90- | -v | --version | Show version number | | |
91- | -h | --help | Show help | | |
73+ | flag | alias | description | choices | default |
74+ | ----- | --------------------------------- | -------------------------------------------------------------------------------------------------- | ---------------------------- | --------- |
75+ | -s | --style | Output style | ` line ` , ` side ` | ` line ` |
76+ | --sc | --synchronisedScroll | Synchronised horizontal scroll | ` true ` , ` false ` | ` true ` |
77+ | --hc | --highlightCode | Highlight code | ` true ` , ` false ` | ` true ` |
78+ | --su | --summary | Show files summary | ` closed ` , ` open ` , ` hidden ` | ` closed ` |
79+ | -d | --diffStyle | Diff style | ` word ` , ` char ` | ` word ` |
80+ | --lm | --matching | Diff line matching type | ` lines ` , ` words ` , ` none ` | ` none ` |
81+ | --lmt | --matchWordsThreshold | Diff line matching word threshold | | ` 0.25 ` |
82+ | --lmm | --matchingMaxComparisons | Diff line matching maximum line comparisons of a block of changes | | ` 2500 ` |
83+ | | --diffMaxChanges | Number of changed lines after which a file diff is deemed as too big and not displayed | | |
84+ | | --diffMaxLineLength | Number of characters in a diff line after which a file diff is deemed as too big and not displayed | | |
85+ | | --renderNothingWhenEmpty | Render nothing if the diff shows no change in its comparison | | ` false ` |
86+ | | --maxLineSizeInBlockForComparison | Maximum number of characters of the bigger line in a block to apply comparison | | ` 200 ` |
87+ | | --maxLineLengthHighlight | Maximum number of characters in a line to apply highlight | | ` 10000 ` |
88+ | --hwt | --htmlWrapperTemplate | Path to custom template to be rendered when using the ` html ` output format | ` [string] ` |
89+ | -f | --format | Output format | ` html ` , ` json ` | ` html ` |
90+ | -i | --input | Diff input source | ` file ` , ` command ` , ` stdin ` | ` command ` |
91+ | -o | --output | Output destination | ` preview ` , ` stdout ` | ` preview ` |
92+ | -u | --diffy | Upload to diffy.org | ` browser ` , ` pbcopy ` , ` print ` | |
93+ | -F | --file | Send output to file (overrides output option) | ` [string] ` | |
94+ | --ig | --ignore | Ignore particular files from the diff | ` [string] ` | |
95+ | -v | --version | Show version number | | |
96+ | -h | --help | Show help | | |
9297
9398### Exit Status Codes
9499
0 commit comments