Shoobx / xmldiff

A library and command line utility for diffing xml
MIT License
201 stars 52 forks source link

Process exit code #91

Closed lynnux closed 1 year ago

lynnux commented 2 years ago

Then gnu diff tool will return 1 if there has different, but xmldiff seems always return 0 except that encounter error like tag mismattch.

regebro commented 2 years ago

Hmm, I haven't thought about using it to test if there is a difference. Just to generate a diff.

As a workaround you can just check if it outputs anything. Adding a --check parameter that behaves like you want makes sense.

Glamhoth commented 1 year ago

I added such a parameter in #98.

regebro commented 1 year ago

Thanks for all the help @Glamhoth !