Closed koraktor closed 13 years ago
This has been implemented in c471e5b07945b943fade6da7c6d07a7be98011b4.
The next step will be to allow argument access using simple methods (i.e. Option#method_missing
).
option :user, [:name] do
@user = name
end
e695ccf15ed315b391fe451cdf693ad414b0c4a3 and d1de7dac75edd83f052e64a5381a598ea6ee8aa6 implement even more simplified argument access.
If you want to access the argument of a option, you still need to use the full "path" of the argument. A shortcut would be very handy:
Or even better with named arguments (see issue #3):
This could be even further improved using e.g.
Option#method_missing
.