Add some missing --version switches
This commit is contained in:
parent
d287b62b64
commit
15c15da482
2 changed files with 10 additions and 0 deletions
|
@ -58,6 +58,11 @@ EOF
|
||||||
# '` hack
|
# '` hack
|
||||||
}
|
}
|
||||||
|
|
||||||
|
elsif ($arg eq "--version") {
|
||||||
|
print "nix-build (Nix) $Nix::Config::version\n";
|
||||||
|
exit 0;
|
||||||
|
}
|
||||||
|
|
||||||
elsif ($arg eq "--add-drv-link") {
|
elsif ($arg eq "--add-drv-link") {
|
||||||
$drvLink = "./derivation";
|
$drvLink = "./derivation";
|
||||||
}
|
}
|
||||||
|
|
|
@ -194,6 +194,11 @@ while (scalar @ARGV) {
|
||||||
usageError;
|
usageError;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
elsif ($arg eq "--version") {
|
||||||
|
print "nix-channel (Nix) $Nix::Config::version\n";
|
||||||
|
exit 0;
|
||||||
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
die "unknown argument `$arg'; try `--help'";
|
die "unknown argument `$arg'; try `--help'";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue