Req #18008 [Opn]: support "list" arguments like list options
| From: | cweiske@php.net | Date: | Fri, 29 Oct 2010 11:12:36 +0000 |
| Subject: | Req #18008 [Opn]: support "list" arguments like list options | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-5000@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=18008&edit=1
ID: 18008
Updated by: cweiske@php.net
Reported By: cweiske at php dot net
Summary: support "list" arguments like list options
Status: Open
Type: Feature/Change Request
Package: Console_CommandLine
Package Version: 1.1.3
PHP Version: Irrelevant
Roadmap Versions:
New Comment:
Using an option is not an option since options are optional :)
Previous Comments:
------------------------------------------------------------------------
[2010-10-29 11:08:47] rquadling
The obvious answer is to use --target $targetsystem and --target is a
list controlled option.
------------------------------------------------------------------------
[2010-10-29 09:58:41] cweiske
Description:
------------
It would be cool if Console_CommandLine would support the "list"
parameter for arguments - the way it does for options.
Example:
My tool is used to copy files to one of a list of supported remote
systems.
$ php copy.php $targetsystem file1 file2 ...
Now $targetsystem is no option but a mandatory argument, and only a list
of allowed options is possible.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18008&edit=1