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

Also available in: Atom PDF