addOptionsForCommand() публичный статический Метод

public static addOptionsForCommand ( OptionCollection $opts )
$opts GetOptionKit\OptionCollection
Пример #1
0
 /**
  * @param \GetOptionKit\OptionSpecCollection $opts
  */
 public function options($opts)
 {
     $opts->add('m|more', 'Show more older versions');
     $opts->add('o|old', 'List old phps (less than 5.3)');
     $opts->add('u|update', 'Update release list');
     DownloadFactory::addOptionsForCommand($opts);
 }
Пример #2
0
 /**
  * @param \GetOptionKit\OptionSpecCollection $opts
  */
 public function options($opts)
 {
     $opts->add('f|force', 'Force extraction');
     $opts->add('old', 'enable old phps (less than 5.3)');
     $opts->add('mirror:', 'Use mirror specific site.');
     DownloadFactory::addOptionsForCommand($opts);
 }
Пример #3
0
 public function options($opts)
 {
     $opts->add('o|old', 'List old phps (less than 5.3)');
     $opts->add('official', 'Unserialize release information from official site (using `unserialize` function).');
     DownloadFactory::addOptionsForCommand($opts);
 }
Пример #4
0
 /**
  * @param \GetOptionKit\OptionCollection $opts
  */
 public function options($opts)
 {
     $opts->add('test', 'Run tests after the installation.');
     $opts->add('name:', 'The name of the installation. By default the installed path is equal to the release version name (php-5.x.x), however you can specify a custom name instead of the default `php-5.x.x`. For example, `myphp-5.3.2-dbg`')->valueName('name');
     $opts->add('mirror:', 'Use specified mirror site. phpbrew will download the files from [mirror]/distributions/*');
     $opts->add('post-clean', 'Run make clean after the installation.');
     $opts->add('production', 'Use production configuration file. this installer will copy the php-production.ini into the etc directory.');
     $opts->add('build-dir:', 'Specify the build directory. ' . 'the distribution tarball will be extracted to the directory you specified ' . 'instead of $PHPBREW_ROOT/build/{name}.')->isa('dir');
     $opts->add('root', 'specify phpbrew root instead of PHPBREW_ROOT');
     $opts->add('home', 'specify phpbrew home instead of PHPBREW_HOME');
     $opts->add('no-config-cache', 'do not use config.cache for configure script.');
     $opts->add('no-clean', 'Do not clean previously compiled objects before building PHP. ' . 'By default phpbrew will run `make clean` before running the configure script ' . 'to ensure everything is cleaned up.');
     $opts->add('no-patch', 'Do not apply any patch');
     $opts->add('no-configure', 'Do not run configure script');
     $opts->add('no-install', 'Do not install, just run build the target');
     $opts->add('n|nice:', 'Runs build processes at an altered scheduling priority. The priority can be adjusted over a range of -20 (the highest) to 20 (the lowest).')->valueName('priority');
     $opts->add('patch+:', 'Apply patch before build.')->isa('file');
     $opts->add('old', 'Install phpbrew incompatible phps (< 5.3)');
     $opts->add('user-config', 'Allow users create their own config file (php.ini or extension config init files)');
     DownloadFactory::addOptionsForCommand($opts);
     $opts->add('f|force', 'Force the installation (redownloads source).')->defaultValue(false);
     $opts->add('d|dryrun', 'Do not build, but run through all the tasks.');
     $opts->add('like:', 'Inherit variants from an existing build. This option would require an existing build directory from the {version}.')->valueName('version');
     $opts->add('j|jobs:', 'Specifies the number of jobs to run build simultaneously (make -jN).')->valueName('concurrent job number');
     $opts->add('stdout', 'Outputs install logs to stdout.');
     $opts->add('sudo', 'sudo to run install command.');
 }
Пример #5
0
 /**
  * @param \GetOptionKit\OptionSpecCollection $opts
  */
 public function options($opts)
 {
     DownloadFactory::addOptionsForCommand($opts);
 }
Пример #6
0
 public function options($opts)
 {
     $opts->add('chmod:');
     DownloadFactory::addOptionsForCommand($opts);
 }
Пример #7
0
 /**
  * @param \GetOptionKit\OptionSpecCollection $opts
  */
 public function options($opts)
 {
     $opts->add('pecl', 'Try to download from pecl even when ext source is bundled with php-src.');
     $opts->add('redownload', 'Force to redownload extension source even if it is already available.');
     DownloadFactory::addOptionsForCommand($opts);
 }