Update getopts to have a valid gettext entry
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3554 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -316,9 +316,9 @@ class getopts
|
||||
if (array_key_exists ($pos+1, $tokens) &&
|
||||
$tokens[$pos+1] === "--" &&
|
||||
! array_key_exists ($pos+2, $tokens))
|
||||
throw new \Exception (dgettext ("domframework",
|
||||
"Mandatory value for parameter '$opt' is not provided ".
|
||||
"after double-dash"), 500);
|
||||
throw new \Exception (sprintf (dgettext ("domframework",
|
||||
"Mandatory value for parameter '%s' is not provided after double-dash"),
|
||||
$opt), 500);
|
||||
if (! array_key_exists ($pos+1, $tokens) ||
|
||||
substr ($tokens[$pos+1], 0, 1) === "-")
|
||||
throw new \Exception (dgettext ("domframework",
|
||||
|
||||
Reference in New Issue
Block a user