Commits

Richo Healey committed a1bfa85

Fix stupid regression

  • Participants
  • Parent commits 70d3902

Comments (0)

Files changed (2)

File lib/twat/actions.rb

     def user_feed
       twitter_auth
       # Fix :default case
-      puts Twitter.user_timeline(opts[:account]).first.text
+      puts Twitter.user_timeline(opts[:user]).first.text
     end
 
     def version

File lib/twat/argparse.rb

           options[:action] = :version
         end
         opts.on('-u', '--user [USER]', 'Display current status for USER (Defaults to your default account)') do |user| #{{{ --user USER
-          options[:account] = (user || 'default').to_sym
-          action[:user_feed]
+          options[:user] = (user || :default)
+          options[:action] = :user_feed
         end #}}}
       end