diff options
author | Ralph Amissah <ralph@amissah.com> | 2014-07-29 19:25:21 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2014-07-29 19:25:21 -0400 |
commit | 1fa2ba3f6e03cbf0a6c8e8a2ce78ce6b7fd40b63 (patch) | |
tree | 3c59f10961e057602e7b406301764068ce6d445c | |
parent | v5 v6: version & changelog (& rakefile) (diff) |
v5 v6: options, minor fixes
-rw-r--r-- | lib/sisu/v5/options.rb | 8 | ||||
-rw-r--r-- | 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/ |