nix: Respect -I, --arg, --argstr
Also, random cleanup to argument handling.
This commit is contained in:
parent
25f32625e2
commit
0d59f1ca49
26 changed files with 349 additions and 299 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue