Tiago Ameller PRO said almost 2 years ago on Creating Command Line Applications :
Very interesting episode! I've written a bunch of ruby CLI without the assistance of ttytoolkit and I definitely will add this library to my next ones.
Just two insights:
  1. It's there a better way to pass parameters to a Rails rake task, using ttytoolkit and optparse, by exemple?
  2. Why you do not use [].tap in this function?
[].tap do |array| ...

David Kimura PRO said almost 2 years ago on Creating Command Line Applications :
I normally favor [].tap, but I was having issues with my keyboard.  It’s strange, but I did get a replacement.

I haven’t explored too many rake task arg methods as I usually try to keep those arg-less.

Login to Comment