From a562d544d8520a0f113ad1a348e28ea00f27b693 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 3 Oct 2012 16:37:06 -0400 Subject: When ‘--help’ is given, just run ‘man’ to show the manual page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I.e. do what git does. I'm too lazy to keep the builtin help text up to date :-) Also add ‘--help’ to various commands that lacked it (e.g. nix-collect-garbage). --- src/nix-env/nix-env.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/nix-env/nix-env.cc') diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc index d9b48e81c9fd..bb6df32d0fd0 100644 --- a/src/nix-env/nix-env.cc +++ b/src/nix-env/nix-env.cc @@ -4,7 +4,6 @@ #include "misc.hh" #include "shared.hh" #include "eval.hh" -#include "help.txt.hh" #include "get-drvs.hh" #include "attr-path.hh" #include "common-opts.hh" @@ -66,7 +65,7 @@ typedef void (* Operation) (Globals & globals, void printHelp() { - cout << string((char *) helpText); + showManPage("nix-env"); } -- cgit 1.4.1