2017 © Pedro Peláez
 

library cliph

A library for testable command-line applications

image

99designs/cliph

A library for testable command-line applications

  • Thursday, December 20, 2012
  • by lox
  • Repository
  • 14 Watchers
  • 2 Stars
  • 41,814 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Cliph - a library for testable CLI applications

<?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 (c) 2012 99designs See LICENSE for details., (*1)

The Versions

20/12 2012

dev-master

9999999-dev http://github.com/99designs/cliph

A library for testable command-line applications

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

cli command line 99designs getopts

20/12 2012

v0.1.0

0.1.0.0 http://github.com/99designs/cliph

A library for testable command-line applications

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

cli command line 99designs getopts