mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 17:16:15 +02:00
nix-build: Use showManPage() and printVersion()
This commit is contained in:
parent
451c223dee
commit
40dfac968a
1 changed files with 3 additions and 7 deletions
|
@ -136,15 +136,11 @@ int main(int argc, char ** argv)
|
||||||
|
|
||||||
if (arg == "--help") {
|
if (arg == "--help") {
|
||||||
deletePath(tmpDir);
|
deletePath(tmpDir);
|
||||||
tmpDir.cancel();
|
showManPage(myName);
|
||||||
execlp("man", "man", myName, NULL);
|
|
||||||
throw SysError("executing man");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (arg == "--version") {
|
else if (arg == "--version")
|
||||||
std::cout << myName << " (Nix) " << nixVersion << '\n';
|
printVersion(myName);
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
else if (arg == "--add-drv-link") {
|
else if (arg == "--add-drv-link") {
|
||||||
drvLink = "./derivation";
|
drvLink = "./derivation";
|
||||||
|
|
Loading…
Reference in a new issue