]> git.nbdom.net Git - nb.git/commitdiff
option netrc
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 2 Mar 2016 11:05:37 +0000 (11:05 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 2 Mar 2016 11:05:37 +0000 (11:05 +0000)
bin/dbq

diff --git a/bin/dbq b/bin/dbq
index 900c49387639a278f162e5735afbcc47d515f17c..07be243bbe318610350490093250dee532b6df65 100755 (executable)
--- a/bin/dbq
+++ b/bin/dbq
@@ -41,7 +41,7 @@ my %CURL_OPT = (
   'get|G!' => undef, # Send the -d data with a HTTP GET (H)
   'silent|s!' => 1, # Silent mode (don't output anything)
   'header|H=s' => \@H, # LINE   Pass custom header LINE to server (H)
-  'netrc|n!', # Must read .netrc for user name and password
+  'netrc|n!' => 1, # Must read .netrc for user name and password
 );
 my @CURL_OPT = keys %CURL_OPT;
 my $CURL_OPT_EXP = join('|',map{ /^(.*?)\|/ ? $1 : $_ } @CURL_OPT);