You are viewing a plain text version of this content. The canonical link for it is here.
Posted to zeta-issues@incubator.apache.org by "Oliver Mueller (JIRA)" <ji...@apache.org> on 2011/09/13 16:19:08 UTC

[jira] [Created] (ZETACOMP-91) ConsoleInput should also work without -- before ezcConsoleArgument

ConsoleInput should also work without -- before ezcConsoleArgument
------------------------------------------------------------------

                 Key: ZETACOMP-91
                 URL: https://issues.apache.org/jira/browse/ZETACOMP-91
             Project: Zeta Components
          Issue Type: Improvement
          Components: ConsoleTools
            Reporter: Oliver Mueller
            Priority: Minor


If I use ezcConsoleInput with ezcConsoleOption of type ezcConsoleInput::TYPE_NONE and ezcConsoleArguments and like to make a call like this:

script.php -v myArgument

it will not work, because an error occurs ("The option 'verbose' expects a value of type 'none', but received the value 'myArgument'.").
This is quite unusual for unix command line. If an option does not expect any value, it is usually no problem to just append an argument right behind the option with using "--". Of course the "--" is a valid way of typing a command, it is still awkward if it is obligatory.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira