mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 16:23:02 +00:00
Add some missing --version switches
This commit is contained in:
parent
d287b62b64
commit
15c15da482
@ -58,6 +58,11 @@ EOF
|
||||
# '` hack
|
||||
}
|
||||
|
||||
elsif ($arg eq "--version") {
|
||||
print "nix-build (Nix) $Nix::Config::version\n";
|
||||
exit 0;
|
||||
}
|
||||
|
||||
elsif ($arg eq "--add-drv-link") {
|
||||
$drvLink = "./derivation";
|
||||
}
|
||||
|
@ -194,6 +194,11 @@ while (scalar @ARGV) {
|
||||
usageError;
|
||||
}
|
||||
|
||||
elsif ($arg eq "--version") {
|
||||
print "nix-channel (Nix) $Nix::Config::version\n";
|
||||
exit 0;
|
||||
}
|
||||
|
||||
else {
|
||||
die "unknown argument `$arg'; try `--help'";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user