diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-11-22 15:59:52 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-02-11 11:55:22 +0100 |
commit | 15a16e5c05d547ec07170df2392263e5e891447b (patch) | |
tree | 13f04586c45bf9df2f80c592ebf509c744dab130 /src/nix/main.cc | |
parent | aa0e2a2e70a3519a9dcb9b1da000a13c01aa6cc1 (diff) |
MultiCommand: Simplify construction
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r-- | src/nix/main.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc index 64c1dc357..3d4348d28 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -57,10 +57,15 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs "--help-config' for a list of configuration settings.\n"; } + void printHelp(const string & programName, std::ostream & out) + { + MultiCommand::printHelp(programName, out); + std::cout << "\nNote: this program is EXPERIMENTAL and subject to change.\n"; + } + void showHelpAndExit() { printHelp(programName, std::cout); - std::cout << "\nNote: this program is EXPERIMENTAL and subject to change.\n"; throw Exit(); } }; |