#
our %subcmd_props = (
-# build (default) =>[qw( )],
-'generate-lockfile'=>[qw( lock-update !target !target-dir )],
- update =>[qw( lock-update !target online )],
- fetch =>[qw( online !target-dir )],
+# build (default) =>[qw( )],
+'generate-lockfile'=>[qw( lock-update !target !target-dir )],
+ update =>[qw( lock-update !target online )],
+ fetch =>[qw( online !target-dir )],
+ fmt =>[qw( !locked !target !offline !target-dir edits )],
);
-our @subcmd_xprops = qw(!manifest-path !offline !locked);
+our @subcmd_xprops = qw(!manifest-path);
our @configs;
our $verbose=1;
push @add, "--offline" unless $online || subcmd_p('!offline');
+ if (subcmd_p('edits') && $linkfarm_depth ne 'copy-edit') {
+ print STDERR
+ "$self: *WARNING*: this subcommand expects to edit the source code; you probably want to specify --edits-sources aka -E (which is not the default even now, for safety reasons)\n";
+ }
+
push @args_preface, @add if $pass_options;
die if grep { m/ / } @add;
$ENV{NAILINGCARGO_CARGO_OPTIONS} = "@add";