]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
diff: add support for --help and --version
authorTom Jones <thj@FreeBSD.org>
Thu, 10 Mar 2022 16:15:39 +0000 (16:15 +0000)
committerTom Jones <thj@FreeBSD.org>
Thu, 10 Mar 2022 16:17:37 +0000 (16:17 +0000)
commit8cf449db88b2c7a505bc241a78f9736b43f2ede5
treee4293ac697d6dd8fdd665c5ff9307f95abb64786
parent0784121c963e39aa9e8b33c4e0a0c181daf75277
diff: add support for --help and --version

Add support for --help and --version to be compatible with gnu diff.

gnu diff --help writes to stdout, do the same to be compatible

Reviewed by: bapt, pstef, debrup, Pau Amma
Sponsored by: Klara Inc.
Differential Revision: https://reviews.freebsd.org/D34508
usr.bin/diff/diff.1
usr.bin/diff/diff.c