No longer checks on n inputs for Tap.task
Reported by bahuvrihi | September 2nd, 2008 @ 11:57 PM | in Tap-0.11.0
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.
Comments and changes to this ticket
-
bahuvrihi September 10th, 2008 @ 09:59 AM
- Milestone set to Tap-0.11.0
-
bahuvrihi October 11th, 2008 @ 09:18 AM
- 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.
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A framework for making configurable, file-based tasks and workflows.