text
stringlengths
0
834k
}
next;
}
if ($arg =~ /^-c=?(.*)/) {
$conns_num = $1;
next;
}
if ($arg eq '--') {
@ARGV = @args;
last;
}
if ($arg =~ /^--ns=(.*)/) {
push @ns, $1;
next;
}
if ($arg eq '--ns') {
my $v = shift @args;
if (!defined $v) {
die ""option --ns takes an argument but "",
""found none.\n"";
}
push @ns, $v;
next;
}
if ($arg =~ /^--shdict=(.*)/) {
push @shdicts, $1;
next;
}
if ($arg eq '--shdict') {
my $v = shift @args;
if (!defined $v) {
die ""option --shdict takes an argument but "",
""found none.\n"";
}
push @shdicts, $v;
next;
}
if ($arg =~ /^--nginx=(.*)/) {
$nginx_path = $1;
next;
}
if ($arg eq '--nginx') {
$nginx_path = shift @args;
if (!defined $nginx_path) {
die ""option --nginx takes an argument but "",
""found none.\n"";
}
next;
}
if ($arg =~ /^--http-conf=(.*)/) {
push @http_confs, $1;
next;
}
if ($arg =~ /^--stream-conf=(.*)/) {
push @stream_confs, $1;
next;
}
if ($arg =~ /^--main-conf=(.*)/) {
push @main_confs, $1;
next;
}
if ($arg eq '--http-conf') {
my $v = shift @args;
if (!defined $v) {
die ""option --http-conf takes an argument but "",
""found none.\n"";
}
push @http_confs, $v;
next;
}
if ($arg eq '--stream-conf') {
my $v = shift @args;
if (!defined $v) {
die ""option --stream-conf takes an argument but "",
""found none.\n"";
}
push @stream_confs, $v;
next;
}
if ($arg eq '--main-conf') {
my $v = shift @args;
if (!defined $v) {
die ""option --main-conf takes an argument but "",
""found none.\n"";
}
push @main_confs, $v;