Passing named command arguments to a generator


#1

Hi folks,

I’ve been looking at how to create generators for a lot of little tasks.
Does anyone know how to pass, recieve, and then use named arguments to a
generator? I’ve been looking at this argument, but I’m not clear on
what’s
possible. Is it solely based on the order of the arguments?

http://wiki.rubyonrails.org/rails/pages/UnderstandingGenerators

For example, I’d like to pass in an argument with a particular value
(controller=xxx) for example, but allow that argument to appear anywhere
in
the list. If anyone has any of their own example generators, I’d love
to
see them… Thanks,

Eric