Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

No longer checks on n inputs for Tap.task

#95

Somewhere along the line the check for Tap.task declarations were removed. (see http://github.com/bahuvrihi/tap/...

Now 'tap run -- task with too many or not enough inputs' is ok.

Reported by bahuvrihi · September 2nd, 2008 @ 11:57 PM

State: invalid
Milestone: Tap-0.11.0
Assigned to: bahuvrihi bahuvrihi

Activity

  1. bahuvrihi
    bahuvrihi
    • Milestone set to Tap-0.11.0

    September 10th, 2008 @ 09:59 AM

  2. bahuvrihi
    bahuvrihi
    • Assigned user set to bahuvrihi
    • State changed from new to invalid
    • Tag changed from bug, tap to bug, tap

    Now that Tap.task patterns itself after Rake.task more fully, the proper functionality is to NOT raise an error for missing or extra inputs. In

    
      task :name, :one, :two do |t, args|
        args...
      end
    

    args acts like an OpenStruct. If it has the inputs it does, if not, it doesn't.

    October 11th, 2008 @ 09:18 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.