$not_a_nailing_opt->() unless m{^-};
$not_a_nailing_opt->() if $_ eq '--';
+ my $edits_sources = sub {
+ $linkfarm_depth = 'copy-edit';
+ };
+
if ($_ eq '---') { # usage 2 or 3
if (!@ARGV) {
die "$self: --- must be followed by build command\n" unless $noact;
} elsif (s{^-D}{-}) {
$dump++;
} elsif (s{^-E}{-}) {
- $linkfarm_depth = 'copy-edit';
+ $edits_sources->();
} elsif (s{^-T(.+)}{-}s) {
$target = $1;
} elsif (s{^-([oO])}{-}) {
} elsif (m{^--linkfarm(?:=(no|shallow|git|full))?$}) {
$linkfarm_depth = $1 || 'git';
} elsif (m{^--edits?-sources?$}) {
- $linkfarm_depth = 'copy-edit';
+ $edits_sources->();
} elsif (m{^--just-run$}) {
$do_nail = $do_cargo_lock = $do_lock = 0;
} elsif (m{^--(clean|keep)-linkfarm$}) {