Assume a local file if the argument contains slash for w3mman
This commit is contained in:
@@ -22,9 +22,12 @@ while (@ARGV) {
|
|||||||
@ARGV || &usage();
|
@ARGV || &usage();
|
||||||
if ( $query eq "" ) { $query = "?quit=ok"; }
|
if ( $query eq "" ) { $query = "?quit=ok"; }
|
||||||
$query .= "&keyword=" . &form_encode(shift @ARGV);
|
$query .= "&keyword=" . &form_encode(shift @ARGV);
|
||||||
} elsif (/^-l$/) {
|
} elsif (/^-l$/ || /\//) {
|
||||||
|
if (/^-l$/) {
|
||||||
@ARGV || &usage();
|
@ARGV || &usage();
|
||||||
$query = "?quit=ok&local=" . &form_encode(shift @ARGV);
|
$_ = shift @ARGV;
|
||||||
|
}
|
||||||
|
$query = "?quit=ok&local=" . &form_encode($_);
|
||||||
$query .= "&pwd=" . &form_encode($ENV{'PWD'});
|
$query .= "&pwd=" . &form_encode($ENV{'PWD'});
|
||||||
} elsif (/^-/) {
|
} elsif (/^-/) {
|
||||||
&usage();
|
&usage();
|
||||||
|
Reference in New Issue
Block a user