Skip to content

Commit f4a7f30

Browse files
authored
Update README.md
1 parent eee8ea5 commit f4a7f30

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

README.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ Python CLI tool and library for comparing CSV database dumps and finding differe
99

1010
pip install git+https://github.com/datsom1/db-diff.git
1111

12-
To install unofficial latest version (you probably don't need to do this)
12+
To install the unofficial latest version (you probably don't need to do this):
13+
1314
pip install --upgrade --force-reinstall git+https://github.com/datsom1/db-diff.git
1415

1516
## Usage
@@ -130,20 +131,20 @@ If the columns in the CSV have changed, those added or removed columns will be i
130131

131132
## Full CLI Helptext
132133

133-
$ db-diff --help
134-
Usage: db-diff \[OPTIONS\] PREVIOUS CURRENT
135-
136-
Compare the differences between two CSV or JSON files to find differences.
137-
138-
Options:
139-
--format TEXT Explicitly specify input format. Available (csv|tsv|json) \[default: auto-detect based on file extension\]
140-
--encoding TEXT Input File Encoding. Available: (utf-8|utf-16|utf-16le|utf-16be|latin1|cp1252|ascii|...) \[default: utf-8\]
141-
--key TEXT Column to use as a unique ID for each row (ex: --key=Id) \[default: first column if not specified\]
142-
--output TEXT Output format. Available: (readable|json|jsonfile) \[default: readable\]
143-
--outputfile FILE File to write JSON output to (only used with --output=jsonfile)
144-
--showunchanged If a record is changed, show ALL fields, not just the changed fields.
145-
--time Measure and display elapsed time for the diff operation
146-
--version Show the version and exit.
147-
-h, --help Show this message and exit.
148-
149-
Example: db-diff old.csv new.csv --key=Id --output=jsonfile --outputfile=diff.json
134+
$ db-diff --help
135+
Usage: db-diff \[OPTIONS\] PREVIOUS CURRENT
136+
137+
Compare the differences between two CSV or JSON files to find differences.
138+
139+
Options:
140+
--format TEXT Explicitly specify input format. Available (csv|tsv|json) \[default: auto-detect based on file extension\]
141+
--encoding TEXT Input File Encoding. Available: (utf-8|utf-16|utf-16le|utf-16be|latin1|cp1252|ascii|...) \[default: utf-8\]
142+
--key TEXT Column to use as a unique ID for each row (ex: --key=Id) \[default: first column if not specified\]
143+
--output TEXT Output format. Available: (readable|json|jsonfile) \[default: readable\]
144+
--outputfile FILE File to write JSON output to (only used with --output=jsonfile)
145+
--showunchanged If a record is changed, show ALL fields, not just the changed fields.
146+
--time Measure and display elapsed time for the diff operation
147+
--version Show the version and exit.
148+
-h, --help Show this message and exit.
149+
150+
Example: db-diff old.csv new.csv --key=Id --output=jsonfile --outputfile=diff.json

0 commit comments

Comments
 (0)