搜尋套件、儲存庫與 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.

所屬分類

原始碼儲存庫

使用此套件的專案