Repolode

apple/swift-argument-parser

A type-safe Swift library for parsing command-line arguments, flags, options and subcommands into your own command types.

Star
3,793
Fork
0
未关闭 Issue
0
最近提交
3天前

核心功能

  • 01Declare options, flags and positional arguments with property wrappers.
  • 02Generates usage text, help output and error messages from property definitions.
  • 03Supports nested commands and subcommands.
  • 04Offers AsyncParsableCommand for async/await run methods.
  • 05Distributed as a Swift Package Manager dependency.

适用场景

  • Building a Swift command-line utility with typed arguments and automatic help.
  • Adding a multi-command CLI with subcommands to a Swift project.
  • Writing async command-line tools that call asynchronous APIs.

标签

常见问题

swift-argument-parser 是什么?
A type-safe Swift library for parsing command-line arguments, flags, options and subcommands into your own command types.
swift-argument-parser 可以免费使用吗?用的什么许可证?
swift-argument-parser 以 Apache-2.0 许可证开源。用于商业产品前,请先确认许可证条款。
swift-argument-parser 还在维护吗?
活跃维护中。swift-argument-parser 最近一次提交是在 2026年10月16日。
swift-argument-parser 适合用来做什么?
Building a Swift command-line utility with typed arguments and automatic help. Adding a multi-command CLI with subcommands to a Swift project. Writing async command-line tools that call asynchronous APIs.
在哪里获取 swift-argument-parser?
源代码和安装说明在 GitHub 上:https://github.com/apple/swift-argument-parser

概要由 AI 根据项目 README 生成;GitHub 数据每日更新。

相关项目