Mercurial > hg > rc1
view vendor/pear/console_commandline/tests/console_commandline_parse_21.phpt @ 43:771f6803cc4b default tip
somehow lost the correctly updated metadata so e.g. 'mail' package wasn't being imported
author | Charlie Root |
---|---|
date | Sun, 26 Jan 2025 13:13:49 -0500 |
parents | 1e000243b222 |
children |
line wrap: on
line source
--TEST-- Test for Console_CommandLine::parse() method (--help with renderer options). --SKIPIF-- <?php if(php_sapi_name()!='cli') echo 'skip'; ?> --ARGS-- --help 2>&1 --FILE-- <?php require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'tests.inc.php'; $parser = buildParser1(); $parser->renderer->line_width = 0; $parser->renderer->options_on_different_lines = true; $parser->parse(); ?> --EXPECT-- Description of our parser goes here... Usage: some_program [options] simple [multiple1 multiple2 ...] Options: -t --true test the StoreTrue action -f --false test the StoreFalse action --int=INT test the StoreInt action --float=FLOAT test the StoreFloat action -s STRING --string=STRING test the StoreString action -c --counter test the Counter action --callback=callback test the Callback action -a ARRAY --array=ARRAY test the StoreArray action -p password --password=password test the Password action -h --help show this help message and exit -v --version show the program version and exit Arguments: simple test a simple argument multiple test a multiple argument