Metadata-Version: 2.4
Name: diff2html
Version: 1.0.1
Summary: CLI wrapper for Pythons Difflib builtin
Author-email: "tim.pillinger" <tim.pillinger@metoffice.gov.uk>
License-Expression: MIT
Keywords: diff,html,difftool,difflib,cli
Classifier: Programming Language :: Python
Description-Content-Type: text/markdown
License-File: LICENSE.md
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: flake8; extra == "test"
Dynamic: license-file

# Diff2HTML

Python's difflib is a great standard library feature.

But I wanted a command line version.

## Installation

```
pip install diff2html
```

## Usage

```
diff2html fileA fileB --output diff.html
firefox diff.html
```

## Full help

```
usage: Compare two files and produce a well formatted diff in an HTML file.

A command line wrapper for Python's difftool.

       [-h] [-l STRIP_LEFT] [-r STRIP_RIGHT] [-t TITLE] [-n NOTES] [-o OUTPUT]
       left right

positional arguments:
  left                  The first file to compare.
  right                 The second file to compare.

options:
  -h, --help            show this help message and exit
  -l, --left-strip STRIP_LEFT
                        Regex expression acting on the left hand side of the
                        diff
  -r, --right-strip STRIP_RIGHT
                        Regex expression acting on the right hand side of the
                        diff
  -t, --title TITLE     Add a title to the page, other than the names of the
                        files being compared. If set the names of the files
                        being compared will be added as a subtitle.
  -n, --notes NOTES     Additional notes to be added below the title and
                        subtitle.
  -o, --output OUTPUT   Output file path. If unset output will be printed to
                        stdout.
```
