ZF-8224: Action Args [--action-args] in help system but don't work
Description
From the help system:
zf [--global-opts] action-name [--action-opts] provider-name [--provider-opts] [provider parameters ...]
Note: You may use "?" in any place of the above usage string to ask for more specific help information.
Example: "zf ? version" will list all available actions for the version provider.
However if you specifiy --action-opts, you get an error that the name of given action opts is not a valid provider.
Comments
Posted by Benjamin Eberlei (beberlei) on 2009-11-05T03:09:39.000+0000
The correct help should be:
Posted by Benjamin Eberlei (beberlei) on 2009-11-05T03:28:58.000+0000
Also --provider-opts does not work.
The action has to have a parameter with the same name for it to work. This is very unintuitive and probably not correct.
The method _parseProviderOptionsPart() should not use Console GetOpt but parse the arguments left and set them as Provider Options.
Currently its really parsing the action arguments and setting them as additional provider arguments, although they are already set as action parameters.
Posted by Rob Allen (rob) on 2012-11-20T20:52:42.000+0000
Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".
Feel free to re-open and provide a patch if you want to fix this issue.