diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-02-06 21:17:46 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-02-06 21:17:46 -0500 |
commit | 5b0d2c1fc909a5a50bd8168428a0ce42364b0b5c (patch) | |
tree | c9cbd4f1851f6a9d56e0c72f9ee6e4f4f5d5880c /lib/sisu/v4/options.rb | |
parent | v4 (v3): version & changelog (diff) |
v4: html, screen reporting for --html-scroll, correctly identify output file
Diffstat (limited to 'lib/sisu/v4/options.rb')
-rw-r--r-- | lib/sisu/v4/options.rb | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/sisu/v4/options.rb b/lib/sisu/v4/options.rb index fbdfc8f3..6aac2b1a 100644 --- a/lib/sisu/v4/options.rb +++ b/lib/sisu/v4/options.rb @@ -765,16 +765,12 @@ module SiSU_Commandline act[:html_seg]={ bool: true, set: :on } { bool: true, set: :on } else - act[:html_scroll]=if mod.inspect =~/"--html-scroll"/ - { bool: true, set: :on } - else - { bool: false, set: :na } - end - act[:html_seg]=if mod.inspect =~/"--html-seg"/ - { bool: true, set: :on } - else - { bool: false, set: :na } - end + act[:html_scroll]=(mod.inspect =~/"--html-scroll"/) \ + ? { bool: true, set: :on } + : { bool: false, set: :na } + act[:html_seg]=(mod.inspect =~/"--html-seg"/) \ + ? { bool: true, set: :on } + : { bool: false, set: :na } { bool: false, set: :na } end act[:concordance]=(cmd =~/w/ \ |