mirror of
https://github.com/NixOS/nix.git
synced 2025-12-02 23:20:59 +01:00
Use enum struct and drop prefixes
This does a few enums; the rest will be gotten in subsequent commits.
This commit is contained in:
parent
eb1911e277
commit
87b32bab05
57 changed files with 382 additions and 354 deletions
|
|
@ -22,7 +22,7 @@ static int _main(int argc, char ** argv)
|
|||
printVersion("nix-copy-closure");
|
||||
else if (*arg == "--gzip" || *arg == "--bzip2" || *arg == "--xz") {
|
||||
if (*arg != "--gzip")
|
||||
printMsg(lvlError, format("Warning: '%1%' is not implemented, falling back to gzip") % *arg);
|
||||
printMsg(Verbosity::Error, format("Warning: '%1%' is not implemented, falling back to gzip") % *arg);
|
||||
gzip = true;
|
||||
} else if (*arg == "--from")
|
||||
toMode = false;
|
||||
|
|
@ -31,7 +31,7 @@ static int _main(int argc, char ** argv)
|
|||
else if (*arg == "--include-outputs")
|
||||
includeOutputs = true;
|
||||
else if (*arg == "--show-progress")
|
||||
printMsg(lvlError, "Warning: '--show-progress' is not implemented");
|
||||
printMsg(Verbosity::Error, "Warning: '--show-progress' is not implemented");
|
||||
else if (*arg == "--dry-run")
|
||||
dryRun = true;
|
||||
else if (*arg == "--use-substitutes" || *arg == "-s")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue