99designs / cliph
A library for testable command-line applications
Installs: 65 237
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 49
Forks: 1
Open Issues: 0
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: >=3.7.0
This package is not auto-updated.
Last update: 2024-10-26 15:20:18 UTC
README
<?php $options = new \Cliph\Options($argv,array( '--help,-h','--connect=NULL','--init=',':cmd' )); // show help if($options->has('-h','--help') || $options->errors()) { $options->printErrors(); echo "\nusage: $argv[0] [..args] [cmd]\n\n"; echo " --connect <broker> : connect to broker, instead of localhost\n"; echo " --init <cmd> : command to run if cwd doesn't exist and needs initialization\n"; echo " --help -h : this documentation\n"; echo "\n"; exit(1); } echo $options->value('--connect');
Copyright
Copyright (c) 2012 99designs See LICENSE for details.