From: daniel Date: Wed, 18 Feb 2015 17:55:27 +0000 (+0100) Subject: Allow a lonely "-" as positional argument X-Git-Tag: 1.31.0-rc.0~12237 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;ds=sidebyside;h=145f1c1bb4dfa6e173bdd5dcbabfedbe91722daf;p=lhc%2Fweb%2Fwiklou.git Allow a lonely "-" as positional argument Change-Id: I658988c8f955103d6bc4bd1047819a37de0d505d --- diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index af14bb36fc..a0ffcb2b15 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -696,6 +696,9 @@ abstract class Maintenance { } $options[$option] = $param; } + } elseif ( $arg == '-' ) { + # Lonely "-", often used to indicate stdin or stdout. + $args[] = $arg; } elseif ( substr( $arg, 0, 1 ) == '-' ) { # Short options $argLength = strlen( $arg );