mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
* nix-store: --substitute' ->
--register-substitutes'.
This commit is contained in:
parent
8b70f138e0
commit
c702dfca3f
6 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue