diff options
author | Kyle Meyer <kyle@kyleam.com> | 2021-05-15 22:42:42 -0400 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-05-16 15:21:53 +0000 |
commit | 8cc23ac6f7a3847977ec57c2a3e9e391fdb94da6 (patch) | |
tree | 8f7e4f66c0316bf3d34e8eb9a622f6be6631be63 /lib | |
parent | 2c1cbdc7cc6b7f89212e2aaff81d92200656d9fd (diff) | |
download | public-inbox-8cc23ac6f7a3847977ec57c2a3e9e391fdb94da6.tar.gz |
`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'.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/LEI.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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 ], |