# args (Dart)

> Command-line argument parsing for Dart

Source: https://talira.ai/catalog/args-dart-c31bejbd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / cli frameworks](https://talira.ai/categories/libraries/cli-frameworks), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^2]

args is the Dart team's package for parsing command-line arguments into options and values. You define options and flags on an ArgParser, with GNU and POSIX style syntax, single-letter abbreviations, defaults, allowed values and negatable flags, then parse the arguments and read the results. For tools with subcommands, CommandRunner and Command dispatch to the right command and add a help command and --help handling with generated usage text. It works in server-side and client-side Dart and is published on pub.dev from the dart-lang/core repository.

## Links

- GitHub: https://github.com/dart-lang/core

## Problems it solves

- parse command-line flags in my Dart CLI tool
- add subcommands and --help to a Dart command-line app
- validate the values passed to my Dart script's options

## Features

- GNU and POSIX style options and flags
- abbreviations, defaults and allowed values
- subcommands with CommandRunner
- generated usage and --help

## Trust

Overall: 0.55 out of 1.
Signals: maintenance 0.83, adoption 0.38, momentum 0.17, community 0.88, backing 0.55, extensibility 0.00.

- last commit 6 days ago
- 34 commits in the last 90 days
- latest release os_detect-v2.0.4 23 days ago
- 77 GitHub stars
- 160 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Alternatives

- [DCli](https://talira.ai/catalog/dcli-d27yn7zm.md): Dart library and tooling for writing CLI apps and scripts
- [CLI Completion](https://talira.ai/catalog/cli-completion-46ezjf2n.md): Shell tab completion for Dart command-line apps built with CommandRunner

## Sources

[^1]: https://github.com/dart-lang/core/blob/main/pkgs/args/LICENSE (checked 27 Nov 2026)
[^2]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
