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

Bug #14717 Password not option with XML config
Submitted: 2008-09-27 18:47 UTC
From: rom Assigned: izi
Status: Closed Package: Console_CommandLine (version 1.0.2)
PHP Version: 5.2.6 OS: FreeBSD
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 37 - 17 = ?

 
 [2008-09-27 18:47 UTC] rom (Fred Wittekind)
Description: ------------ If Password option is specified via XML instead of addOption method, password is not optional on the command line. Fixed by adding the following at line 200 of XmlParser.php: if ($obj->action == 'Password') { // special case for Password action, password can be passed to the // commandline or prompted by the parser $obj->argument_optional = true; } Test script: --------------- <option name="ftppass"> <short_name>-p</short_name> <long_name>--password</long_name> <description>FTP Password</description> <action>Password</action> </option> Expected result: ---------------- Should get a password prompt if password not specified on command line. Actual result: -------------- Am told option ftppass requires a value.

Comments

 [2008-09-30 13:22 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 Thanks Fred, bug fixed in release 1.0.3.