From c3c84ebf7d232b7f426e348c6a58077e2c9a0dcd Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 3 Jun 2003 18:15:33 +0000 Subject: [PATCH] initial commit [SVN r18654] --- src/options/help.jam | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 src/options/help.jam diff --git a/src/options/help.jam b/src/options/help.jam new file mode 100755 index 000000000..f8290d632 --- /dev/null +++ b/src/options/help.jam @@ -0,0 +1,26 @@ +# Copyright David Abrahams 2003. Permission to copy, use, +# modify, sell and distribute this software is granted provided this +# copyright notice appears in all copies. This software is provided +# "as is" without express or implied warranty, and with no claim as +# to its suitability for any purpose. + +# This module is the plug-in handler for the --help and --help-.* +# command-line options +import doc ; +import assert ; + + +# Handle options here. This might just as well be done at module +# scope, since we don't happen to use the argument values, but I hope +# that Rene will transplant the help logic here and then it will be +# useful. +rule process ( option-name : value ? ) +{ + assert.result --help : MATCH ^(--help).* : $(option-name) ; + if [ doc.help ] + { + EXIT ; + } +} + + \ No newline at end of file