Add some missing --version switches

This commit is contained in:
Eelco Dolstra 2012-07-11 18:07:41 -04:00
parent d287b62b64
commit 15c15da482
2 changed files with 10 additions and 0 deletions

View file

@ -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";
}

View file

@ -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'";
}