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.
This commit is contained in:
Eelco Dolstra 2019-07-10 10:29:41 +02:00
parent b5ae85f088
commit aa739e7839
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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);