I have two commits in this pull that take care of the two problems of issue #10.
The position of parameters is now recorded and taken into consideration as the parameters are munged.
More contentiously, I removed the @extras to be able to have parameters set after options. So that we can have:
foo bar --option X my-param-1 my-param-2
Please have a look and let me know what you think.
parameters are ordered alphabetically
... which is not what one would expect. I would rather think that
parameters should be taken in the order in which they are
declared, or following a 'position' attribute.
parameter positions are recorded
parameters can be after --options
To make that one happen, I had to remove the
extras in the parser. Which I don't think is
too horrible: they are nothing but trailing
parameters. We might want to do something smart
with a parameter that is an array and slurp them all.
Thank you for this patch! I have just merged it with and made some minor amendments (eg. parameters defined in roles didn't work). The fixes will make it to CPAN soon.
Excellent. Thanks a bunch!
Just released MooseX::App 1.20