From a4dc37c55a0abb9996e24010db1ad6113095f9af Mon Sep 17 00:00:00 2001 From: Craig Earls Date: Wed, 30 Nov 2011 16:34:43 -0700 Subject: [PATCH] Dramatically improved the online help system. Modify global.h and global.cc to bring up the info page for Ledger rather than the outdated man page. Also introduced new options to search the info page index. Help options are now: `--help' Brings up the info page `--help-info' Brings up the info help page `--help-comm' concept Searches the info index for `concept' `--help-disp' Brings up the Format String chapter of the manual `--help-calc' Brings up the Value Expression Chapter. --- doc/ledger3.texi | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/doc/ledger3.texi b/doc/ledger3.texi index 47150f28..196e5f93 100644 --- a/doc/ledger3.texi +++ b/doc/ledger3.texi @@ -45,7 +45,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. @titlepage @title Ledger: Command-Line Accounting @subtitle For Version 3.0 of Ledger -@subtitle Draft Manual Time-stamp: <2011-11-28 22:21 (cpearls)> +@subtitle Draft Manual Time-stamp: <2011-11-30 16:33 (cpearls)> @author John Wiegley @end titlepage @@ -90,6 +90,9 @@ twinkling in their father's CRT. @chapter Copying @insertcopying +This license can also be obtained from the commandline by executing +@code{ledger --license} + @node Introduction to Ledger, Ledger Tutorial , Copying, Top @chapter Introduction to Ledger @menu @@ -252,9 +255,21 @@ enter these commands: @node Getting Help, , Building the Program, Introduction to Ledger @section Getting help +Ledger has a complete online help system based on GNU Info. This manual +can be searched directly fromthe command line using the following +options: +@option{ledger --help} bring up this entire manual in your tty. -If you need help on how to use Ledger, or run into problems, you can -join the Ledger mailing list at the following Web address: +@option{ledger --help-info} brings up help on how to use the info system. + +@option{ledger --help-comm concept} search the manual index and bring up pages associated with `concept'. + +@option{ledger --help-calc} brings up the value expressions chapter of the manual + +@option{ledger --help-disp} brings up the Format Strings chapter of the manual. + + If you need help on how to use Ledger, or run into problems, +you can join the Ledger mailing list at the following Web address: @smallexample http://groups.google.com/group/ledger-cli