aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v6/hub_options.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-10-03 19:20:08 -0400
committerRalph Amissah <ralph@amissah.com>2014-10-03 19:20:08 -0400
commit97864e99d0819efdd3916f11f16cca058438ffc4 (patch)
treeffb922fb54a95cec33f311c73c80acb3e0db351c /lib/sisu/v6/hub_options.rb
parentv5 v6: cleaning, minor (diff)
v5 v6: --act provides info on current --act0 to --act9 settings
* makes it easier to make use of acts 0 to 9
Diffstat (limited to 'lib/sisu/v6/hub_options.rb')
-rw-r--r--lib/sisu/v6/hub_options.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/sisu/v6/hub_options.rb b/lib/sisu/v6/hub_options.rb
index 7ed7645f..f8085c6c 100644
--- a/lib/sisu/v6/hub_options.rb
+++ b/lib/sisu/v6/hub_options.rb
@@ -511,7 +511,7 @@ module SiSU_Commandline
shortcut=SiSU_Env::InfoProcessingFlag.new
if files ==:true
if not sel_init.empty? \
- and sel_init.inspect =~/"--act[0-9]/
+ and sel_init.inspect =~/"--act[s0-9]?/
sel_init.each do |s|
select_arr <<=case s
when /--act0/ then shortcut.act_0.arr
@@ -524,6 +524,7 @@ module SiSU_Commandline
when /--act7/ then shortcut.act_7.arr
when /--act8/ then shortcut.act_8.arr
when /--act9/ then shortcut.act_9.arr
+ when /--act/ then shortcut.act_info
end
end
end
@@ -688,6 +689,11 @@ module SiSU_Commandline
end
end
else
+ if not sel_init.empty? \
+ and sel_init.inspect =~/"--acts?/
+ shortcut.act_info
+ exit
+ end
if ch =~/c/ then select_arr << '--color-toggle'
ch=ch.gsub(/[c]/,'')
end