about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-07-10T08·29+0200
committerEelco Dolstra <edolstra@gmail.com>2019-07-10T09·28+0200
commitaa739e783993864aa6e0c8a4820e6b59f4626d92 (patch)
treef8a3c3589704de891ef81385654b9285d7f9b329 /src
parentb5ae85f0882f4857f550ed68b23af260af5000a0 (diff)
nix copy: Rename --substitute to --substitute-on-destination
'--substitute' was being shadowed by the regular '--substitute' (the
short-hand for '--option substitute true').

Fixes #2983.
Diffstat (limited to 'src')
-rw-r--r--src/nix/copy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/copy.cc b/src/nix/copy.cc
index 96bd453d87b4..12a9f9cd3372 100644
--- a/src/nix/copy.cc
+++ b/src/nix/copy.cc
@@ -36,7 +36,7 @@ struct CmdCopy : StorePathsCommand
             .set(&checkSigs, NoCheckSigs);
 
         mkFlag()
-            .longName("substitute")
+            .longName("substitute-on-destination")
             .shortName('s')
             .description("whether to try substitutes on the destination store (only supported by SSH)")
             .set(&substitute, Substitute);