Fix exceptions in `PackageCLICommand`
authorMatthias Schmidt <gravatronics@live.com>
Sun, 2 Oct 2016 09:18:19 +0000 (11:18 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 2 Oct 2016 09:18:19 +0000 (11:18 +0200)
wcfsetup/install/files/lib/system/cli/command/PackageCLICommand.class.php

index c32c92373eb9546a80cd5ed967de91aefe1d7ef5..571de1725a257ecf3b6737049e6038143390f63f 100644 (file)
@@ -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;
                }
        }