D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
php55
/
usr
/
share
/
doc
/
pear
/
ConsoleTools
/
docs
/
Filename :
tutorial_example_04_input_basic.php
back
Copy
<?php require_once 'tutorial_autoload.php'; $input = new ezcConsoleInput(); $helpOption = $input->registerOption( new ezcConsoleOption( 'h', 'help' ) ); try { $input->process(); } catch ( ezcConsoleOptionException $e ) { die( $e->getMessage() ); } if ( $helpOption->value !== false ) { echo "Help requested."; } else { echo "No help requested."; } ?>