support stdin, no-ext-diff, docs, lenient on stat