From 8cc23ac6f7a3847977ec57c2a3e9e391fdb94da6 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sat, 15 May 2021 22:42:42 -0400 Subject: 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'. --- lib/PublicInbox/LEI.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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 ], -- cgit v1.2.3-24-ge0c7