about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-05-15 22:42:42 -0400
committerEric Wong <e@80x24.org>2021-05-16 15:21:53 +0000
commit8cc23ac6f7a3847977ec57c2a3e9e391fdb94da6 (patch)
tree8f7e4f66c0316bf3d34e8eb9a622f6be6631be63 /lib
parent2c1cbdc7cc6b7f89212e2aaff81d92200656d9fd (diff)
downloadpublic-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.pm3
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 ],