++PublicInbox::Admin::do_chdir(\@chdir);
+
+@c_extra = map {
+ my ($k, $v) = split(/=/, $_, 2);
+ defined($v) or die "Usage: -c KEY=VALUE\n";
+ $k =~ /\A[a-z]+\z/i or die "$k contains invalid characters\n";
+ $k = lc($k);
+ if ($k eq 'newsgroup') {
+ die "newsgroup already set ($ng)\n" if $ng ne '';
+ $ng = $v;
+ ();
+ } elsif ($k eq 'address') {
+ push @address, $v; # for conflict checking
+ ();
+ } elsif ($k =~ /\A(?:inboxdir|mainrepo)\z/) {
+ die "$k not allowed via -c $_\n"
+ } elsif ($k eq 'indexlevel') {
+ defined($indexlevel) and
+ die "indexlevel already set ($indexlevel)\n";
+ $indexlevel = $v;
+ ();
+ } else {
+ $_
+ }
+} @c_extra;
+
+PublicInbox::Admin::indexlevel_ok_or_die($indexlevel) if defined $indexlevel;