3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 03:49:29 +01:00

pbot-vm: Fix add_option()

This commit is contained in:
Pragmatic Software 2022-02-15 11:40:06 -08:00
parent 951b771b9c
commit 3fdfb789df

View File

@ -115,7 +115,7 @@ sub process_cmdline_options($self) {
$self->{code} = $code;
}
sub add_option($self, $option, $value) {
sub add_option($self, $option, $value = '') {
$self->{options_order} //= [];
$self->{options}->{$option} = $value;
push @{$self->{options_order}}, $option;