bin/i2cssh in i2cssh-1.7.1 vs bin/i2cssh in i2cssh-1.8.0
- old
+ new
@@ -34,11 +34,11 @@
if config_hash["columns"] and config_hash["rows"] then
puts "CONFIG ERROR: rows and columns can't be used a the same time"
exit 1
end
- [:broadcast, :profile, :rank, :iterm2, :login, :columns, :rows, :sleep, :direction].each do |p|
+ [:broadcast, :profile, :rank, :iterm2, :login, :columns, :rows, :sleep, :direction, :itermname].each do |p|
@i2_options[p] = config_hash[p.to_s].nil? ? @i2_options[p] : config_hash[p.to_s]
end
@i2_options[:login] = login_override if login_override
@i2_options[:direction] ||= :column
@@ -140,9 +140,13 @@
opts_from_cmdline[:profile] = p
end
opts.on "-2", '--iterm2',
'Use iTerm2 instead of iTerm' do
opts_from_cmdline[:iterm2] = true
+ end
+ opts.on "-i", '--itermname NAME', String,
+ 'Name of the application to use (default: iTerm)' do |i|
+ opts_from_cmdline[:itermname] = i
end
opts.on '-s', '--sleep SLEEP', Float,
'Number of seconds to sleep between creating SSH sessions' do |s|
opts_from_cmdline[:sleep] = s
end