diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-02-02T10·51+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-02-02T10·51+0000 |
commit | d9f30fe7c74ae8518a575c0d15ee00aa46a2229a (patch) | |
tree | 14919393077b5cac95a3f76d78364cf38b4c05ba /src/libmain/shared.cc | |
parent | 47c003cb5999344aa2e4cb9f912551e33a94cd41 (diff) |
* Sort `nix-env -q' output by derivation name.
* `--version' flag for all commands. * Manual updates.
Diffstat (limited to 'src/libmain/shared.cc')
-rw-r--r-- | src/libmain/shared.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc index e91ef2667824..32f4f81240bb 100644 --- a/src/libmain/shared.cc +++ b/src/libmain/shared.cc @@ -70,6 +70,9 @@ static void initAndRun(int argc, char * * argv) else if (arg == "--help") { printHelp(); return; + } else if (arg == "--version") { + cout << format("%1% (Nix) %2%") % programId % NIX_VERSION << endl; + return; } else if (arg == "--keep-failed" || arg == "-K") keepFailed = true; else remaining.push_back(arg); |