Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / src / Commands / help / DrushHelpDocument.php
diff --git a/vendor/drush/drush/src/Commands/help/DrushHelpDocument.php b/vendor/drush/drush/src/Commands/help/DrushHelpDocument.php
new file mode 100644 (file)
index 0000000..1d28c42
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+namespace Drush\Commands\help;
+
+use Consolidation\AnnotatedCommand\Help\HelpDocument;
+use Symfony\Component\Console\Command\Command;
+
+class DrushHelpDocument extends HelpDocument
+{
+
+    /**
+     * @inheritdoc
+     */
+    public function generateBaseHelpDom(Command $command)
+    {
+        // Global options should not appear in our help output.
+        $command->setApplication(null);
+
+        return parent::generateBaseHelpDom($command);
+    }
+
+    protected function alterHelpDocument(Command $command, \DomDocument $dom)
+    {
+        return parent::alterHelpDocument($command, $dom);
+    }
+}