3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

Plugins/Weather: improve usage message

This commit is contained in:
Pragmatic Software 2020-05-20 14:19:10 -07:00
parent 7a0de62612
commit 7645dce361

View File

@ -30,7 +30,7 @@ sub unload {
sub cmd_weather { sub cmd_weather {
my ($self, $context) = @_; my ($self, $context) = @_;
my $usage = "Usage: weather [-u <user account>] [location]"; my $usage = "Usage: weather (<location> | -u <user account>)";
my $getopt_error; my $getopt_error;
local $SIG{__WARN__} = sub { local $SIG{__WARN__} = sub {
$getopt_error = shift; $getopt_error = shift;