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

Interpreter: add default options to split_line()

This commit is contained in:
Pragmatic Software 2019-06-10 11:51:48 -07:00
parent f0181c7a69
commit 4826b1c851

View File

@ -548,6 +548,13 @@ sub extract_bracketed {
sub split_line { sub split_line {
my ($self, $line, %opts) = @_; my ($self, $line, %opts) = @_;
my %default_opts = (
strip_quotes => 0,
keep_spaces => 0
);
%opts = (%default_opts, %opts);
my @chars = split //, $line; my @chars = split //, $line;
my @args; my @args;