aboutsummaryrefslogtreecommitdiff
path: root/src/nix/prefetch.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-01-13 14:18:04 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-01-13 14:18:04 +0100
commit3da9a9241cb9f8c284426c220ea285398d0328dd (patch)
tree76d285b2ff05458958a69618b153ec094c0ae49d /src/nix/prefetch.cc
parent4e9cec79bf5302108a031b3910f63baccf719eb5 (diff)
Convert option descriptions to Markdown
Diffstat (limited to 'src/nix/prefetch.cc')
-rw-r--r--src/nix/prefetch.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nix/prefetch.cc b/src/nix/prefetch.cc
index ce8c85ecf..a831dcd15 100644
--- a/src/nix/prefetch.cc
+++ b/src/nix/prefetch.cc
@@ -258,14 +258,14 @@ struct CmdStorePrefetchFile : StoreCommand, MixJSON
{
addFlag({
.longName = "name",
- .description = "store path name",
+ .description = "Override the name component of the resulting store path. It defaults to the base name of *url*.",
.labels = {"name"},
.handler = {&name}
});
addFlag({
.longName = "expected-hash",
- .description = "expected hash of the file",
+ .description = "The expected hash of the file.",
.labels = {"hash"},
.handler = {[&](std::string s) {
expectedHash = Hash::parseAny(s, hashType);
@@ -276,7 +276,9 @@ struct CmdStorePrefetchFile : StoreCommand, MixJSON
addFlag({
.longName = "executable",
- .description = "make the resulting file executable",
+ .description =
+ "Make the resulting file executable. Note that this causes the "
+ "resulting hash to be a NAR hash rather than a flat file hash.",
.handler = {&executable, true},
});