]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LEI.pm
lei rediff: handle stdin like other commands
[public-inbox.git] / lib / PublicInbox / LEI.pm
index 3e17a614962cdaa195625b11b80634e4213d9440..b82fb003687675752c405a5a5192bb3eedd9b82a 100644 (file)
@@ -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 ],