nix: Add --refresh as an alias for --tarball-ttl 0

This commit is contained in:
Eelco Dolstra 2019-12-02 15:56:37 +01:00
parent 0456a4ec65
commit e721f99817

View file

@ -92,6 +92,11 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs
.longName("no-net")
.description("disable substituters and consider all previously downloaded files up-to-date")
.handler([&]() { useNet = false; });
mkFlag()
.longName("refresh")
.description("consider all previously downloaded files out-of-date")
.handler([&]() { settings.tarballTtl = 0; });
}
void printFlags(std::ostream & out) override