From: Matthias Schmidt Date: Sun, 2 Oct 2016 09:18:19 +0000 (+0200) Subject: Fix exceptions in `PackageCLICommand` X-Git-Tag: 3.0.0_Beta_2~30 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8e8757f39cf2c3a8636bc5fdc1c662f3ea5851e6;p=GitHub%2FWoltLab%2FWCF.git Fix exceptions in `PackageCLICommand` --- diff --git a/wcfsetup/install/files/lib/system/cli/command/PackageCLICommand.class.php b/wcfsetup/install/files/lib/system/cli/command/PackageCLICommand.class.php index c32c92373e..571de1725a 100644 --- a/wcfsetup/install/files/lib/system/cli/command/PackageCLICommand.class.php +++ b/wcfsetup/install/files/lib/system/cli/command/PackageCLICommand.class.php @@ -49,7 +49,7 @@ class PackageCLICommand implements IArgumentedCLICommand { $this->argv->parse(); if (count($this->argv->getRemainingArgs()) !== 2) { - throw new ArgvException('', $this->fixUsage($this->argv->getUsageMessage())); + throw new ArgvException('', $this->getUsage()); } list($action, $package) = $this->argv->getRemainingArgs(); @@ -65,7 +65,7 @@ class PackageCLICommand implements IArgumentedCLICommand { break; default: - throw new ArgvException('', $this->fixUsage($this->argv->getUsageMessage())); + throw new ArgvException('', $this->getUsage()); break; } }