Closed rzuckerm closed 5 years ago
I think this feature could be more effective with a silent mode default for stdout outputs, but this works fine.
I think we can improve this.
Could you try to revert to use Click.File arguments for output, but opening it for reading+writing (trivial example here), this way we could use direct comparison against sys.stdout
to avoid trying to load compdb from stdout
, what IMHO would be way more elegant and readable.
@nickdiego My first approach was to try click.File('rw')
, but that didn't work if the file didn't exist. Can this PR be merged? Thanks!
Thanks for contributing @rzuckerm and sorry for the delay.
-o/--output
. This PR fixes that-o/--output
for stdout