diff options
Diffstat (limited to 'lib/sisu/v3/options.rb')
| -rw-r--r-- | lib/sisu/v3/options.rb | 11 | 
1 files changed, 8 insertions, 3 deletions
| 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/ \ | 
