Issue Task Closed

#37713Increase readability of cli messages

Ingo Pfennigstorf 06/03/12, 17:22 updated 10/02/18, 12:36

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.