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/libmain/shared.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libmain/shared.hh') diff --git a/src/libmain/shared.hh b/src/libmain/shared.hh index c69879a12356..9e5ec8360952 100644 --- a/src/libmain/shared.hh +++ b/src/libmain/shared.hh @@ -41,6 +41,9 @@ template N getIntArg(const string & opt, return n; } +/* Show the manual page for the specified program. */ +void showManPage(const string & name); + /* Whether we're running setuid. */ extern bool setuidMode; -- cgit 1.4.1