From: Kyle Meyer Date: Sun, 16 May 2021 02:42:42 +0000 (-0400) Subject: lei rediff: handle stdin like other commands X-Git-Tag: v1.7.0~671 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=8cc23ac6f7a3847977ec57c2a3e9e391fdb94da6;p=public-inbox.git lei rediff: handle stdin like other commands `lei rediff' reads from stdin when no argument is specified, but this is likely unintentional given that other lei commands instead have a --stdin|- option and that `lei rediff --help' includes --stdin. Align rediff's handling with the other commands'. --- diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 3e17a614..b82fb003 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -180,8 +180,9 @@ our %CMD = ( # sorted in order of importance/use: qw(git-dir=s@ cwd! verbose|v+ mail! oid-a|A=s path-a|a=s path-b|b=s), @lxs_opt, @c_opt ], -'rediff' => [ '[--stdin|LOCATION...]', +'rediff' => [ '--stdin|LOCATION...', 'regenerate a diff with different options', + 'stdin|', # /|\z/ must be first for lone dash qw(git-dir=s@ cwd! verbose|v+ color:s no-color), @diff_opt, @lxs_opt, @c_opt ],