mookid / diffr

Yet another diff highlighting tool
MIT License
575 stars 22 forks source link

Seems to hang forever if given no parameters #5

Closed nico-abram closed 5 years ago

nico-abram commented 5 years ago

At least on window 7 diffr seems to hang forever.

mookid commented 5 years ago

This is intended. You are supposed to give it some text from stdin.

See the README or the command line help: diffr -h says

USAGE:
    diffr reads from standard input and write to standard output.

    Typical usage is for interactive use of diff:
    diff -u <file1> <file2> | diffr
    git show | diffr
nico-abram commented 5 years ago

What about adding a flag to read from stdin? That way you can show the help msg if someone runs diffr

carenas commented 5 years ago

alternatively, PR #7 could help with this

mookid commented 5 years ago

Hi @nico-abram,

This is fixed by 83b1201.

@carenas thanks for the contribution!