summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/Console/Getopt.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pear/Console/Getopt.php b/pear/Console/Getopt.php
index e8f04165a0..b116b20777 100644
--- a/pear/Console/Getopt.php
+++ b/pear/Console/Getopt.php
@@ -180,7 +180,7 @@ class Console_Getopt {
return new Getopt_Error("option --$opt doesn't allow an argument\n");
}
- $opts[] = array('--' . substr($long_opt, 0, strpos($long_opt, '=')), $opt_arg);
+ $opts[] = array('--' . $opt, $opt_arg);
return;
}