搜索插件、代码仓与 APP 分类

插件详情v2.7.0

args

用于定义解析器的库,可将原始命令行参数解析为选项和值集合,使用 GNU 和 POSIX 风格选项。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
1350万
喜欢数
430
Pub 分数
150

安装插件

flutter pub add args

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

args 包为 Dart 应用程序提供了一种强大的命令行参数解析方式,支持 GNU 和 POSIX 风格的选项。它使开发者能够定义结构化的解析器来处理标志、开关和位置参数,将原始输入转换为清晰且可使用的格式。非常适合用于 CLI 工具、脚本和控制台应用程序,通过直观的 API 和强大的类型安全性简化了参数处理。该包轻量级、文档完善,并在所有主要平台(包括移动、Web 和桌面)上兼容。

适合场景

  • 构建 CLI 工具
  • 在脚本中解析用户输入
  • 通过命令行配置应用程序
  • 使用参数自动化任务
  • 开发开发工具
  • 为应用程序创建命令行界面

主要特点

  • 支持 GNU 和 POSIX 选项样式
  • 灵活的参数解析与类型
  • 内置帮助生成
  • 处理标志、开关和值
  • 类型安全的结果输出
  • 与 Flutter 和 Dart 应用轻松集成

适合对象

  • CLI 应用程序开发者
  • 脚本作者
  • 工具构建者
  • DevOps自动化
  • 跨平台命令行工具
  • 需要输入解析的 Dart/Flutter 项目

使用建议

  • 需要手动设置参数定义
  • 仅限命令行输入
  • 除了解析之外没有内置验证
  • 不适合用于基于图形界面的输入
  • 最佳用于独立或脚本上下文中
  • 取决于参数语法的正确使用

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

Package Description Issues Version
args Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. issues pub package
async Utility functions and classes related to the 'dart:async' library. issues pub package
characters String replacement with operations that are Unicode/grapheme cluster aware. issues pub package
collection Collections and utilities functions and classes related to collections. issues pub package
convert Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. issues pub package
crypto Implementations of SHA, MD5, and HMAC cryptographic functions. issues pub package
fixnum Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. issues pub package
lints Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. issues pub package
logging Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. issues pub package
os_detect Platform independent OS detection. issues pub package
path A string-based path manipulation library. issues pub package
platform A pluggable, mockable platform information abstraction for Dart. issues pub package
typed_data Utility functions and classes related to the dart:typed_data library. issues pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.

所属分类

源码仓库

使用此插件的项目