From 6a6c011f1278d37d078c224410311ffac45bad1c Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 5 Apr 2012 14:47:29 -0400 Subject: v3: urls, reporting, some cleaning --- lib/sisu/v3/options.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'lib/sisu/v3/options.rb') diff --git a/lib/sisu/v3/options.rb b/lib/sisu/v3/options.rb index 11d03e1d..3db80231 100644 --- a/lib/sisu/v3/options.rb +++ b/lib/sisu/v3/options.rb @@ -357,7 +357,7 @@ module SiSU_Commandline when /^--(?:od[ft])$/; c=c+'o' when /^--(?:pdf)$/; c=c+'p' when /^--(?:concordance|wordmap)$/; c=c+'w' - when /^--(?:manpage)$/; c=c+'i' + when /^--(?:manpage|man)$/; c=c+'i' when /^--(?:texinfo)$/; c=c+'I' when /^--(?:xhtml)$/; c=c+'b' when /^--(?:xml-sax)$/; c=c+'x' @@ -379,6 +379,7 @@ module SiSU_Commandline when /^--(?:zap|delete)$/; c=c+'Z' when /^--(?:sample-search-form)$/; c=c+'F' when /^--(?:webserv|webrick)$/; c=c+'W' + when /^--(?:profile)$/; c=c+'E' when /^--(?:maintenance|keep-processing-files)$/; c=c+'M' when /^--(?:verbose[=-]3)$/; c=c+'VM' when /^--(?:verbose[=-]2|Verbose|VERBOSE)$/; c=c+'V' @@ -486,6 +487,10 @@ module SiSU_Commandline || mod.inspect =~/"--maintenance|--keep-processing-files"/) \ ? { bool: true, set: :on } : { bool: false, set: :na } + act[:profile]=(cmd =~/E/ \ + || mod.inspect =~/"--profile"/) \ + ? { bool: true, set: :on } + : { bool: false, set: :na } act[:switch]=if mod.inspect =~/"--switch-off=/ off_list=mod.join(';').gsub(/^.*--switch-off=['"]?(.+?)(?:['"];.+)?$/,'\1') off_list=off_list.scan(/[^,;\s]+/) @@ -625,7 +630,7 @@ module SiSU_Commandline ? { bool: true, set: :on } : { bool: false, set: :na } act[:odt]=(cmd =~/o/ \ - || mod.inspect =~/"--odf"/) \ + || mod.inspect =~/"--odt"|"--odf"/) \ ? { bool: true, set: :on } : { bool: false, set: :na } act[:xml_sax]=(cmd =~/x/ \ @@ -645,7 +650,7 @@ module SiSU_Commandline ? { bool: true, set: :on } : { bool: false, set: :na } act[:manpage]=(cmd =~/i/ \ - || mod.inspect =~/"--manpage"/) \ + || mod.inspect =~/"--manpage"|"--man"/) \ ? { bool: true, set: :on } : { bool: false, set: :na } act[:texinfo]=(cmd =~/I/ \ -- cgit v1.2.3