From 1fa2ba3f6e03cbf0a6c8e8a2ce78ce6b7fd40b63 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 29 Jul 2014 19:25:21 -0400 Subject: v5 v6: options, minor fixes --- lib/sisu/v5/options.rb | 8 ++++---- lib/sisu/v6/options.rb | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/sisu/v5/options.rb b/lib/sisu/v5/options.rb index e90fe668..eede713a 100644 --- a/lib/sisu/v5/options.rb +++ b/lib/sisu/v5/options.rb @@ -277,10 +277,10 @@ module SiSU_Commandline @lngs = q[:lngs] if @files.length > 0 \ and @cmd.empty? \ - and @mod.length==0 #% if no other action called on filename given, default is sisu --v4 -0 [filename(s)] configured as flag default + and @mod.length==0 #% if no other action called on filename given, default is sisu --v5 -0 [filename(s)] configured as flag default shortcut=SiSU_Env::InfoProcessingFlag.new - @mod=['--v4'] - @cmd=shortcut.cf_0 + 'm' + @mod=['--v5'] + @cmd=shortcut.cf_0 + ' --dal' end if @cmd =~/[vVM]/ \ && @cmd !~/-[ku]*v[ku]*$/ @@ -459,7 +459,7 @@ module SiSU_Commandline a.each do |x| y=case x when /0/ - (x=~/^-1\S+/) \ + (x=~/^-0\S+/) \ ? x.gsub(/^-0(\S+)/,shortcut.cf_0 + ' -\1') : x.gsub(/^-0/,shortcut.cf_0 + ' ') when /1/ diff --git a/lib/sisu/v6/options.rb b/lib/sisu/v6/options.rb index c71372e0..b73dd87c 100644 --- a/lib/sisu/v6/options.rb +++ b/lib/sisu/v6/options.rb @@ -277,10 +277,10 @@ module SiSU_Commandline @lngs = q[:lngs] if @files.length > 0 \ and @cmd.empty? \ - and @mod.length==0 #% if no other action called on filename given, default is sisu --v4 -0 [filename(s)] configured as flag default + and @mod.length==0 #% if no other action called on filename given, default is sisu --v5 -0 [filename(s)] configured as flag default shortcut=SiSU_Env::InfoProcessingFlag.new - @mod=['--v4'] - @cmd=shortcut.cf_0 + 'm' + @mod=['--v5'] + @cmd=shortcut.cf_0 + ' --dal' end if @cmd =~/[vVM]/ \ && @cmd !~/-[ku]*v[ku]*$/ @@ -459,7 +459,7 @@ module SiSU_Commandline a.each do |x| y=case x when /0/ - (x=~/^-1\S+/) \ + (x=~/^-0\S+/) \ ? x.gsub(/^-0(\S+)/,shortcut.cf_0 + ' -\1') : x.gsub(/^-0/,shortcut.cf_0 + ' ') when /1/ -- cgit v1.2.3