lib/tw/app/main.rb in tw-0.3.6 vs lib/tw/app/main.rb in tw-0.3.7

- old
+ new

@@ -52,10 +52,11 @@ arg :search, 'search public timeline', :alias => :s arg :stream, 'show user stream', :alias => :st arg :pipe, 'pipe tweet' arg :format, 'output format', :default => 'text' arg :silent, 'silent mode' + arg :conf, 'config file', :default => Tw::Conf.conf_file arg :version, 'show version', :alias => :v arg :help, 'show help', :alias => :h validate :user, 'invalid user name' do |v| v =~ /^[a-zA-Z0-9_]+$/ @@ -89,9 +90,10 @@ STDERR.puts ' tw --format="@#{user} #{text} - http://twitter.com/#{user}/#{id}"' on_exit end Render.silent = @parser[:silent] + Tw::Conf.conf_file = @parser[:conf] regist_cmds cmds.each do |name, cmd| next unless @parser[name]