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:
parent
951b771b9c
commit
3fdfb789df
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user