diff options
author | Eric Wong <e@80x24.org> | 2021-03-12 10:39:42 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-13 05:09:45 -0400 |
commit | e9ab65063d00a7b9b20c369316ec3c9e26e40bf6 (patch) | |
tree | f7c0264fc60454562e591f18628788a2bd0f30fa /lib/PublicInbox/LeiHelp.pm | |
parent | 9dacb984fc80c9cf9be17ca13aba97033fb1d485 (diff) | |
download | public-inbox-e9ab65063d00a7b9b20c369316ec3c9e26e40bf6.tar.gz |
It'll be easier for us to have the option-spec in front of the command instead of the other way around. The option-spec in front makes it easier to sort and keep track of potentially confusing/ambiguous use of command-line switches between different commands. We'll also update some of the proposed switches while we're at it.
Diffstat (limited to 'lib/PublicInbox/LeiHelp.pm')
-rw-r--r-- | lib/PublicInbox/LeiHelp.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiHelp.pm b/lib/PublicInbox/LeiHelp.pm index a654e1c2..be31c2a8 100644 --- a/lib/PublicInbox/LeiHelp.pm +++ b/lib/PublicInbox/LeiHelp.pm @@ -20,7 +20,7 @@ sub call { my @opt_desc; my $lpad = 2; for my $sw (grep { !ref } @info) { # ("prio=s", "z", $GLP_PASS) - my $desc = $OPTDESC->{"$cmd\t$sw"} // $OPTDESC->{$sw} // next; + my $desc = $OPTDESC->{"$sw\t$cmd"} // $OPTDESC->{$sw} // next; my $arg_vals = ''; ($arg_vals, $desc) = @$desc if ref($desc) eq 'ARRAY'; |