]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei help: move "lei help" into LeiHelp.pm
authorEric Wong <e@80x24.org>
Sat, 27 Mar 2021 11:45:49 +0000 (11:45 +0000)
committerEric Wong <e@80x24.org>
Sat, 27 Mar 2021 18:10:26 +0000 (18:10 +0000)
We need to load LeiHelp.pm anyways if somebody calls "lei help",
so save a few kB RAM for users who don't need help.

lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiHelp.pm

index eb3ad9e290f9a34da656a8ac3f68a8afaac64fcb..e680f5f0fd2f494d073856f0663d28f2bf446d48 100644 (file)
@@ -787,8 +787,6 @@ sub lei_daemon_kill {
        kill($sig, $$) or fail($self, "kill($sig, $$): $!");
 }
 
-sub lei_help { _help($_[0]) }
-
 # Shell completion helper.  Used by lei-completion.bash and hopefully
 # other shells.  Try to do as much here as possible to avoid redundancy
 # and improve maintainability.
index be31c2a86247d32c8e9ba2624d82544c6174dea7..9c1b30a1e5662fe068abc7499d065516c1373701 100644 (file)
@@ -97,4 +97,7 @@ EOF
        undef;
 }
 
+# the "lei help" command
+sub lei_help { $_[0]->_help }
+
 1;