From 145f1c1bb4dfa6e173bdd5dcbabfedbe91722daf Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 18 Feb 2015 18:55:27 +0100 Subject: [PATCH] Allow a lonely "-" as positional argument Change-Id: I658988c8f955103d6bc4bd1047819a37de0d505d --- maintenance/Maintenance.php | 3 +++ 1 file changed, 3 insertions(+) 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 ); -- 2.20.1