Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.2

Request #15251 Allow specifying optional arguments for sub-commands
Submitted: 2008-12-05 20:20 UTC
From: gauthierm Assigned: izi
Status: Closed Package: Console_CommandLine (version CVS)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2008-12-05 20:20 UTC] gauthierm (Michael Gauthier)
Description: ------------ For a package I'm working on, I'd like to create the following command-line interface: sqs [--config=filename] list [optional-prefix] sqs [--config=filename] create <name> sqs [--config=filename] delete <url> sqs [--config=filename] version sqs [--config=filename] help [optional-command-name] Currently, Console_CommandLine does not allow optional arguments for sub-commands so I have to implement this using Console_Getopt.

Comments

 [2008-12-06 11:56 UTC] izi (David Jean Louis)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Console_CommandLine