Plugins/Wttr: fix -all not handling "sunrise|sunset" properly

This commit is contained in:
Pragmatic Software 2020-01-29 19:32:45 -08:00
parent 23750d0ef7
commit 28f102d88c
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ sub wttrcmd {
if (defined $options{all}) {
%options = ();
map { $options{$_} = 1 } @wttr_options;
map { my $opt = $_; $opt =~ s/\|.*$//; $options{$opt} = 1 } @wttr_options;
delete $options{all};
delete $options{default};
}