libwww-perl / WWW-Mechanize

Handy web browsing in a Perl object
https://metacpan.org/pod/WWW::Mechanize
Other
68 stars 53 forks source link

mech-dump: Option password requires an argument #181

Open spazm opened 7 years ago

spazm commented 7 years ago

suntong...@gmail.com reported on Nov 1, 2010

What steps will reproduce the problem?
1. $ mech-dump --user=myuser --password='' http://url..
Option password requires an argument 

What is the expected output? What do you see instead?

Empty password taken as a legitimate entry.

What version of the product are you using? On what operating system?

WWW-Mechanize-1.66. 

$ uname -a  
Linux coral 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:32:27 UTC 2010 x86_64 GNU/Linux

Please provide any additional information below.

Fix:

GetOptions(
    'user=s'        => \$user,
    'password:s'    => \$pass,
             ^

Details

Imported from Google Code issue 184 via archive

Comments

petda...@gmail.com commented on Apr 24, 2011 :

(No comment was entered for this change.)