[BUGFIX] Add validation to command arguments

Arguments on CLI actions did not have any validation applied so far.
This change adds argument validation and introduces a method called
when validation errors are found. It will output a list of errors
encountered and some general hint on using the help command.

It can be overridden similar to the ActionController by specifying
$errorCommandName in a command controller.

Change-Id: Icb2b4a128d9e854b43f65c32ac9d5749571a6432
Fixes: #31500
Releases: master