diff options
Diffstat (limited to 'bin/sisu_termsheet')
-rw-r--r-- | bin/sisu_termsheet | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/sisu_termsheet b/bin/sisu_termsheet index 15771bae..66370567 100644 --- a/bin/sisu_termsheet +++ b/bin/sisu_termsheet @@ -5,7 +5,18 @@ raise "Please, use Ruby1.8 (1.8.4 or later), current Ruby #{RUBY_VERSION}" if RU #raise "Please, use Ruby1.8.4 or later, current Ruby #{RUBY_VERSION}" if RUBY_VERSION < '1.8.4' $VERBOSE=nil argv=$* -SiSU_version_dir=(argv.inspect=~/--v1/) ? 'v1' : 'v2' +SiSU_version_dir=case argv.inspect +when /--v1/ + 'v1' +when /--v2/ + 'v2' +when /--v3/ + 'v3' +when /--dev/ + 'v3' +else + 'v2' +end SiSU_lib="sisu/#{SiSU_version_dir}" require "#{SiSU_lib}/termsheet" __END__ |