aboutsummaryrefslogtreecommitdiff
path: root/src/nix/copy.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-10-24 12:45:11 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-10-24 12:58:34 +0200
commit0d59f1ca49c9f7f3b2edaadcf590360ec66a6257 (patch)
treea03d53d84fb61eb354e2634705d8a076f0c1c76d /src/nix/copy.cc
parent25f32625e2f2a3a1e1b3a3811da82f21c3a3b880 (diff)
nix: Respect -I, --arg, --argstr
Also, random cleanup to argument handling.
Diffstat (limited to 'src/nix/copy.cc')
-rw-r--r--src/nix/copy.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/nix/copy.cc b/src/nix/copy.cc
index 071ac3890..2ddea9e70 100644
--- a/src/nix/copy.cc
+++ b/src/nix/copy.cc
@@ -19,8 +19,16 @@ struct CmdCopy : StorePathsCommand
CmdCopy()
: StorePathsCommand(true)
{
- mkFlag(0, "from", "store-uri", "URI of the source Nix store", &srcUri);
- mkFlag(0, "to", "store-uri", "URI of the destination Nix store", &dstUri);
+ mkFlag()
+ .longName("from")
+ .labels({"store-uri"})
+ .description("URI of the source Nix store")
+ .dest(&srcUri);
+ mkFlag()
+ .longName("to")
+ .labels({"store-uri"})
+ .description("URI of the destination Nix store")
+ .dest(&dstUri);
mkFlag()
.longName("no-check-sigs")