Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-core / src / Command / Shared / CommandTrait.php
index 705630cb0a7efd74c2230a76ca004fdf59f4eaef..b09beca5a15b67eb20b2edbd028696f18d766a6b 100644 (file)
@@ -59,4 +59,21 @@ trait CommandTrait
 
         return parent::getDescription();
     }
+
+    /**
+   * @inheritdoc
+   */
+    public function getHelp()
+    {
+        $help = sprintf(
+            'commands.%s.help',
+            str_replace(':', '.', $this->getName())
+        );
+
+        if (parent::getHelp()==$help) {
+            return $this->trans($help);
+        }
+
+        return parent::getHelp();
+    }
 }