diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-04-08T13·48+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-04-08T13·48+0000 |
commit | c702dfca3f5a437866faf190ce7b0869fd1058cb (patch) | |
tree | c9b992046f6f0fd71e5b58a63a52eceb564942eb /src | |
parent | 8b70f138e02d62214715f144b133bf1b981911df (diff) |
* nix-store: `--substitute' -> `--register-substitutes'.
Diffstat (limited to 'src')
-rw-r--r-- | src/nix-store/help.txt | 2 | ||||
-rw-r--r-- | src/nix-store/main.cc | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/nix-store/help.txt b/src/nix-store/help.txt index 30f94a051852..643c6bff581f 100644 --- a/src/nix-store/help.txt +++ b/src/nix-store/help.txt @@ -9,7 +9,7 @@ Operations: --add / -A: copy a path to the Nix store --query / -q: query information - --substitute: register a substitute expression (dangerous!) + --register-substitutes: register a substitute expression (dangerous!) --clear-substitutes: clear all substitutes --register-validity: register path validity (dangerous!) --check-validity: check path validity diff --git a/src/nix-store/main.cc b/src/nix-store/main.cc index 496924677588..87fbe58b1ba3 100644 --- a/src/nix-store/main.cc +++ b/src/nix-store/main.cc @@ -394,7 +394,7 @@ static void opQuery(Strings opFlags, Strings opArgs) } -static void opSubstitute(Strings opFlags, Strings opArgs) +static void opRegisterSubstitutes(Strings opFlags, Strings opArgs) { if (!opFlags.empty()) throw UsageError("unknown flag"); if (!opArgs.empty()) throw UsageError("no arguments expected"); @@ -607,8 +607,8 @@ void run(Strings args) op = opPrintFixedPath; else if (arg == "--query" || arg == "-q") op = opQuery; - else if (arg == "--substitute") - op = opSubstitute; + else if (arg == "--register-substitutes") + op = opRegisterSubstitutes; else if (arg == "--clear-substitutes") op = opClearSubstitutes; else if (arg == "--register-validity") |