Search packages, repositories and app categories

Package detailsv2.7.0

args

Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
14.1M
Likes
430
Pub points
150

Install package

flutter pub add args

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The args package provides a robust way to parse command-line arguments in Dart applications, supporting GNU and POSIX-style options. It enables developers to define structured parsers for flags, switches, and positional arguments, converting raw input into a clean, usable format. Ideal for CLI tools, scripts, and console applications, it simplifies argument handling with intuitive APIs and strong type safety. The package is lightweight, well-documented, and compatible across all major platforms including mobile, web, and desktop.

Use cases

  • Building CLI tools
  • Parsing user input in scripts
  • Configuring applications via command line
  • Automating tasks with arguments
  • Developing development utilities
  • Creating command-line interfaces for apps

Key features

  • Supports GNU and POSIX option styles
  • Flexible argument parsing with types
  • Built-in help generation
  • Handles flags, switches, and values
  • Type-safe result output
  • Easy integration with Flutter and Dart apps

Suitable for

  • CLI application developers
  • Script authors
  • Tool builders
  • DevOps automation
  • Cross-platform command-line tools
  • Dart/Flutter projects needing input parsing

Considerations

  • Requires manual setup of argument definitions
  • Limited to command-line input only
  • No built-in validation beyond parsing
  • Not suitable for GUI-based input
  • Best used in standalone or script contexts
  • Depends on correct usage of argument syntax

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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.

Categories

Source repository

Projects using this package