Issues

ZF-5872: add configuration to allow unconfigured options

Issue Type: Patch Created: 2009-02-24T03:00:57.000+0000 Last Updated: 2012-11-20T20:53:23.000+0000 Status: Closed Fix version(s): Reporter: Marc Bennewitz (GIATA mbH) (mben) Assignee: None Tags: - Zend_Console_Getopt

Related issues: Attachments:

Description

I have the little configuration:

<pre class="highlight">
$getopt = new Zend_Console_Getopt(array(
    'deamon|d=s' => 'deamon mode',
    'verbose|v'  => 'Generate verbose messages',
    'help|h'     => 'display this help and exit'
));

but I would like to allow a user call with unconfigured options like this:

<pre class="highlight">
php myscript.php -v -a

This would nice to configure like:

<pre class="highlight">
$opts->setOption(Zend_Console_Getopt::CONFIG_ALLOWUNCONFIGURED, true);

Comments

Posted by Rob Allen (rob) on 2012-11-20T20:53:23.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.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts