PHP 클래스 SimpleHelp, simpletest

파일 보기 프로젝트 열기: simpletest/simpletest 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $overview = '' ) Sets up the top level explanation for the program.
explainFlag ( string/array $flags, string $explanation ) Adds the explanation for a group of flags that all have the same function.
render ( ) Generates the help text.

비공개 메소드들

메소드 설명
longestFlag ( array $flag_sets ) Works out the longest flag for formatting purposes.
noDuplicateNewLines ( string $text ) Converts multiple new lines into a single new line.
renderFlag ( string $flag ) Generates the flag name including leading dashes.
renderFlagSet ( $flags, $explanation, $tab_stop ) Generates the text for a single flag and it's alternate flags.

메소드 상세

__construct() 공개 메소드

Sets up the top level explanation for the program.
public __construct ( string $overview = '' )
$overview string Summary of program.

explainFlag() 공개 메소드

Adds the explanation for a group of flags that all have the same function.
public explainFlag ( string/array $flags, string $explanation )
$flags string/array
$explanation string What that flag group does.

render() 공개 메소드

Generates the help text.
public render ( )