public showHelp ( $useStandardOptions = false, $optionConfig = false, $optionHelp = false, $argumentConfig = false, $arguments = false ) |
/** * Validates that $topNodeId and $clusterIdentifier are provided correctly * * If validation fails an error message + help message will be displayed and * the script will be halted. * * @param int $topNodeId Node ID * @param string $clusterIdentifier Cluster identifier * @param eZCLI $cli * @param eZScript $script **/ function validateInputs( $topNodeId, $clusterIdentifier, $cli, $script ) { if ( !$topNodeId || !$clusterIdentifier ) { $cli->error( "You must specify a --top-node-id and --cluster-identifier\n" ); $script->showHelp(); $script->shutdown( 1 ); } }