Commits

Richo Healey committed c7f9fae Merge

Merge remote-tracking branch 'origin/config' into config

  • Participants
  • Parent commits 3fa89ba, 2df3940

Comments (0)

Files changed (2)

lib/twat/actions.rb

       end
     end
 
+    def account_name
+      @account_name ||=
+        if opts.include?(:account)
+          opts[:account]
+        else
+          config[:default]
+        end
+    end
+
     def account
       @account = config.accounts[account_name]
     end

lib/twat/argparse.rb

 
   class ArgParse
 
+    # TODO delegate specifically instead of shimming everything?
+
     def usage(additional=nil)
       puts additional if additional
       puts @optparser