From a36b83dad3b828761ee565fbb9ff53a5abc6e4b6 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 26 Sep 2007 13:12:21 +0100 Subject: help, (hub), minor reorganisation and a change in response for typing 'sisu' without options --- CHANGELOG | 3 +++ lib/sisu/v0/help.rb | 16 ++++++++++++++++ lib/sisu/v0/hub.rb | 17 +++++++---------- lib/sisu/v0/sysenv.rb | 3 +-- 4 files changed, 27 insertions(+), 12 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 7decab26..e6a7dee5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -29,6 +29,9 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_0.60.0.orig.tar.gz * sysenv, sisurc.yml allow use of relative output paths, expand to absolute + * help, (hub), minor reorganisation and a change in response for typing + 'sisu' without options + %% sisu_0.59.1.orig.tar.gz (2007-09-25:39/2) http://www.jus.uio.no/sisu/pkg/src/sisu_0.59.1.orig.tar.gz cf512ec871aeb7cdabc0b3b35b7e6d05 10952059 sisu_0.59.1.orig.tar.gz diff --git a/lib/sisu/v0/help.rb b/lib/sisu/v0/help.rb index 4805f6ad..0cd100f4 100644 --- a/lib/sisu/v0/help.rb +++ b/lib/sisu/v0/help.rb @@ -160,6 +160,8 @@ module SiSU_Help This is free software, and you are welcome to redistribute it under the conditions of the GPL3 or later. For more license detail type/enter: "sisu --help license" +for help type 'sisu --help', 'sisu --help [help request]', 'man sisu', (or see the system or online documentation) + typing "sisu" on its own or "sisu --help", should give you this sisu help summary and the sisu (interactive help mode) help prompt, from which help on each keyword can be obtained. alternatively typing #{@cX.orange}sisu --help#{@cX.off} #{@cX.green}[keyword]#{@cX.off} at the command prompt will provide the sisu help page requested and return to the command prompt (if nothing is found it will print this page and return to the command prompt) @@ -184,6 +186,8 @@ alternatively typing #{@cX.orange}sisu --help#{@cX.off} #{@cX.green}[keyword]#{@ ------------------------------------------ SiSU's License #{@cX.green}license#{@cX.off} sisu --help license + +for help type 'sisu --help', 'sisu --help [help request]', 'man sisu', (or see the system or online documentation) WOK # #{@cX.cyan}sisu_convert#{@cX.off} program for initial (very basic and partial) conversion to sisu file format (html and word97 supported) end @@ -1002,8 +1006,18 @@ WOK else "bin: #{@cX.brown}#{bin}#{@cX.off} rc: #{@cX.brown}#{rc}#{@cX.off}" end end + def sisu_version + version=SiSU_Env::Info_version.new.get_version + rb_ver=SiSU_Env::Info_version.new.rbversion + if version[:version] + tell=SiSU_Screen::Ansi.new('-v',version[:project],version[:version],version[:date_stamp],version[:date],rb_ver) + tell.version + else puts 'SiSU version information not available' + end + end def environment cf_defaults=SiSU_Env::Info_processing_flag.new + sisu_version x =<