定制 zozlak/argparse 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zozlak/argparse

Composer 安装命令:

composer require zozlak/argparse

包简介

A humble PHP clone of Python's argparse library

README 文档

README

Latest Stable Version Build Status Coverage Status License

A humble PHP clone of Python's argparse.

Used to reduce my cognitive workload when switching between Python and PHP.

Implements only primary set of argparse features (see below) but strictly follows Python's argparse behavior.

API documentation

See the argparse docs with the following remarks:

  • ArgumentParser constructor supports only prog, description, epilog and exit-on-error parameters.
  • Almost all features of the add_argument() method are implemented.
    Known discrepancies include:
    • If you want to define many names for a given argument, pass them as an array to the name parameter (it's impossible to implement it in PHP in exactly the same way it works in Python as PHP handles positional/named parameters in a slightly different way).
    • Lack of support for %(prog)s placeholder in the help parameter.
    • Lack of support for metavar parameter being an array.
  • All features described under other utilities are not implemented.

统计信息

  • 总下载量: 5.47k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-01-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固