xinc/getopt
Composer 安装命令:
composer require xinc/getopt
包简介
Command line arguments parser for PHP 5.3
README 文档
README
This is a friendly for of Ulrichsg/Getopt.PHP. It is a fine library, but the usage is not flexible enough to suit xincs requirements.
Getopt.PHP is a library for command-line argument processing. It supports PHP version 5.3 and above.
Features
- Supports both short (eg.
-v) and long (eg.--version) options - Option aliasing, ie. an option can have both a long and a short version
- Collapsed short options (eg.
-abcinstead of-a -b -c) - Cumulative options (eg.
-vvv) - Options may take optional or mandatory arguments
- Two alternative notations for long options with arguments:
--option valueand--option=value - Collapsed short options with mandatory argument at the end (eg.
-ab 1instead of-a -b 1)
Documentation
License
Xinc.Getopt is published under the MIT License.
统计信息
- 总下载量: 85
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-12