パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v2.7.0

args

GNU および POSIX スタイルのオプションを使用して、生のコマンドライン引数をオプションと値のセットにパースするためのパーサーを定義するライブラリ。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1410万
いいね数
430
Pub ポイント
150

パッケージをインストール

flutter pub add args

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

args パッケージは、Dart アプリケーションでコマンドライン引数を解析するための堅牢な方法を提供し、GNU および POSIX スタイルのオプションをサポートしています。開発者がフラグ、スイッチ、位置引数用の構造化パーサーを定義できるようにし、元の入力を明確で使いやすい形式に変換します。CLI ツール、スクリプト、コンソールアプリケーションに最適で、直感的な API と強力な型安全により、引数処理を簡単にします。このパッケージは軽量で、ドキュメントが充実しており、モバイル、Web、デスクトップを含むすべての主要プラットフォームで互換性があります。

用途

  • CLI ツールの構築
  • スクリプト内のユーザー入力の解析
  • コマンドラインによるアプリケーションの設定
  • 引数を使用してタスクを自動化する
  • 開発ユーティリティの開発
  • アプリ用のコマンドラインインターフェースを作成する

主な機能

  • GNU および POSIX オプションスタイルをサポートしています
  • 型付きの柔軟な引数解析
  • 組み込みヘルプの生成
  • フラグ、スイッチ、値を処理する
  • 型安全な結果出力
  • Flutter および Dart アプリとの簡単な統合

適している対象

  • CLI アプリケーション開発者
  • スクリプト作成者
  • ツールビルダー
  • DevOpsオートメーション
  • クロスプラットフォームのコマンドラインツール
  • 入力パースが必要なDart/Flutterプロジェクト

注意事項

  • 引数の定義を手動で設定する必要があります
  • コマンドライン入力のみに制限
  • 解析以外の組み込み検証なし
  • GUIベースの入力には適していません
  • スタンドアロンまたはスクリプトコンテキストで最適に使用されます
  • 引数構文の正しい使用に依存する

元の 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.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト