diff command for MoonX.
moonx cli/diff@0.2.3 [-qsauciwbBZrN] [-U LINES | -C LINES] [--label LABEL] FILE1 FILE2| Option | Description |
|---|---|
| -q / -s | Report differences briefly / report equal files. |
| -u, -U LINES / -c, -C LINES | Select unified / context output. |
| --label LABEL | Override a header label. |
| -a | Treat binary data as text. |
| -i / -w / -b / -Z / -B | Ignore ASCII case / whitespace / whitespace amount / trailing whitespace / blank-only changes. |
| --strip-trailing-cr | Remove one CR before each LF. |
| -r / -N | Recurse / treat missing files as empty. |
| --unidirectional-new-file | Treat missing files as empty on the left only. |
| --help / --version | Show help / package version. |
moonx cli/diff@0.2.3 -u old.txt new.txt
moonx cli/diff@0.2.3 -r old-dir new-dir