diversen/parse-argv
最新稳定版本:v4.1.0
Composer 安装命令:
composer require diversen/parse-argv
包简介
Parse argv and get options and arguments
README 文档
README
Any options are denoted by '-' or '--' and any option value must be specified by '='
You may cast options to int, float or booleans
Install:
composer require diversen/parse-argv
Example
Run the following test script:
php example.php -h --help --message=hello --to-int=100 --to-float=100.5 --to-bool=false argument1 argument2
See: example.php
Test
git clone git@github.com:diversen/parse-argv.git
cd parse-argv
composer install
./test.sh
License MIT
统计信息
- 总下载量: 3.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 4
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-06-16