From 8e8757f39cf2c3a8636bc5fdc1c662f3ea5851e6 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 2 Oct 2016 11:18:19 +0200 Subject: [PATCH] Fix exceptions in `PackageCLICommand` --- .../files/lib/system/cli/command/PackageCLICommand.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.20.1