1. Richo Healey
  2. twat

Commits

Richo Healey  committed 65460f0

Stubbed out config updater

  • Participants
  • Parent commits e4851ba
  • Branches master

Comments (0)

Files changed (2)

File lib/twat/actions.rb

View file
       puts "Successfully set #{opts[:account]} as default"
     end
 
+    def updateconfig
+      puts "Sadly, not implemented"
+    end
+
     def show
       twitter_auth
       Twitter.home_timeline.each_with_index do |tweet, idx|

File lib/twat/argparse.rb

View file
           options[:action] = :setdefault
           options[:account] = acct.to_sym
         end #}}}
+        opts.on("--update-config", "Update config to latest version") do #{{{ --update-config
+          options[:action] = :updateconfig
+        end #}}}
       end
 
       @optparser.parse!