Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Not able to use multiple keys #49

Open
jainshagun opened this issue Nov 20, 2018 · 2 comments
Open

Not able to use multiple keys #49

jainshagun opened this issue Nov 20, 2018 · 2 comments

Comments

@jainshagun
Copy link

not getting option to use multiple keys'-k':

Usage: csvdiff [OPTIONS] INDEX_COLUMNS FROM_CSV TO_CSV

Compare two csv files to see what rows differ between them. The files are
each expected to have a header row, and for each row to be uniquely
identified by one or more indexing columns.

Options:
--style [compact|pretty|summary]
Instead of the default compact output,
pretty-print or give a summary instead
-o, --output PATH Output to a file instead of stdout
-q, --quiet Don't output anything, just use exit codes
--sep TEXT Separator to use between fields [default:
comma]
-i, --ignore-columns CSV a comma seperated list of columns to ignore
from the comparison
--significance INTEGER Ignore numeric changes less than this
number of significant figures
--help Show this message and exit.

@larsyencken
Copy link
Owner

larsyencken commented Nov 22, 2018 via email

@simbo1905
Copy link

simbo1905 commented May 22, 2019

Testing this is seemed to work fine. Perhaps this should be closed as a stale issue? Thanks

 2019-05-22 05:38:55 ⌚  |2.4.4| MacBook-Pro-3 in ~/projects/csvdiff
± |master ?:27 ✗| → cat m_a.csv 
a,b,c,d
1,1,2,3
1,2,3,4
2,1,5,6
2,2,7,8

 2019-05-22 05:39:06 ⌚  |2.4.4| MacBook-Pro-3 in ~/projects/csvdiff
± |master ?:27 ✗| → cat m_b.csv 
a,b,c,d
1,1,2,3
1,2,3,44
2,1,5,6
2,2,7,8

 2019-05-22 05:39:09 ⌚  |2.4.4| MacBook-Pro-3 in ~/projects/csvdiff
± |master ?:27 ✗| → csvdiff --style=summary a,b m_a.csv m_b.csv 
0 rows removed (0.0%)
0 rows added (0.0%)
1 rows changed (25.0%)

 2019-05-22 05:39:14 ⌚  |2.4.4| MacBook-Pro-3 in ~/projects/csvdiff

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants