Project

General

Profile

Actions

Task #37713

closed

Increase readability of cli messages

Added by Ingo Pfennigstorf over 12 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2012-06-03
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

Description

Calling the cli_dispatch in the terminal may lead to a message that a cliKey is not present. Afterwards an array is shown with keys and values.
That may lead to confusion, because an argument has to be a cli key - and submitting a key out of the array as argument does not work:

php /home/ingop/Sites/dev/typo3/cli_dispatch.phpsh 4

The supplied 'cliKey' is not valid. Valid keys are:

array (
  0 => 'extbase',
  1 => 'lowlevel_refindex',
  2 => 'lowlevel_cleaner',
  3 => 'lowlevel_admin',
  4 => 'scheduler',
  5 => 'phpunit',
)

Showing a var_dump to a user may also lead to unnecessary confusion.
The solution is to simply show the arguments without any array key.

 php /home/ingop/Sites/dev/typo3/cli_dispatch.phpsh 
This script must have a 'cliKey' as first argument. Valid keys are:

  extbase
  lowlevel_refindex
  lowlevel_cleaner
  lowlevel_admin
  scheduler
  phpunit

Actions #1

Updated by Gerrit Code Review over 12 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11809

Actions #2

Updated by Gerrit Code Review over 12 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11809

Actions #3

Updated by Gerrit Code Review over 12 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11809

Actions #4

Updated by Ingo Pfennigstorf over 12 years ago

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

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF