]> Sergey Matveev's repositories - public-inbox.git/commit
lei: fix opt_dash to pass non-dash args to @argv
authorEric Wong <e@80x24.org>
Mon, 4 Jan 2021 04:16:23 +0000 (04:16 +0000)
committerEric Wong <e@80x24.org>
Mon, 4 Jan 2021 19:00:47 +0000 (19:00 +0000)
commit2ea2b609f46a51bab56bccb7cbc93c27b8a3b5a6
tree76556e9d67a07c00873b9dc0b657902417f9f990
parent7c73a09c6df674e389fb20fb57f63c6bb9695d31
lei: fix opt_dash to pass non-dash args to @argv

The special "<>" handling in Getopt::Long actually invokes the
callback for every single command-line arg, not just those
prefixed by "-".  This will let us pass arbitrary non-dashed
words for search queries so users can type queries naturally
without quoting (unless they want phrase search).
lib/PublicInbox/LEI.pm