Bug #30261

CLI Help throws exception if related comments are not available

Added by Bastian Waidelich almost 4 years ago. Updated almost 4 years ago.

Status:Resolved Start date:2011-09-24
Priority:Must have Due date:
Assigned To:Bastian Waidelich % Done:

100%

Category:Command
Target version:TYPO3 Flow Base Distribution - 1.0.0
PHP Version: Complexity:
Has patch: Affected Flow version:

Description

The flow3:help:help command parses "see" annotations of the commands and retrieves their method description.
This leads to an exception if the target command is not available (e.g. if the respective package is not loaded).
For example: flow3 help package:create throw an exception if the kickstarter package is not installed.

Associated revisions

Revision 75a8b899
Added by Bastian Waidelich almost 4 years ago

[BUGFIX] CLI Help throws exception if related comments are not available

The flow3:help:help command parses @see annotations of the
commands and retrieves the method description of related
commands.
This leads to an exception if the target command is not
available (e.g. if the respective package is not loaded).

This change fixes this by replacing the short description
with "<i>Command not available</i>" in those cases.

Change-Id: I961cdeaf2a0928017bdfaec16bfcb014ee428076
Resolves: #30261

History

#1 Updated by Mr. Hudson almost 4 years ago

  • Status changed from Accepted to Under Review

Patch set 1 of change I961cdeaf2a0928017bdfaec16bfcb014ee428076 has been pushed to the review server.
It is available at http://review.typo3.org/5343

#2 Updated by Mr. Hudson almost 4 years ago

Patch set 2 of change I961cdeaf2a0928017bdfaec16bfcb014ee428076 has been pushed to the review server.
It is available at http://review.typo3.org/5343

#3 Updated by Bastian Waidelich almost 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF