args_macro 0.1.0-8.dev args_macro: ^0.1.0-8.dev copied to clipboard
Generates a parser for command-line arguments based on your data class.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add args_macro
With Flutter:
$ flutter pub add args_macro
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
args_macro: ^0.1.0-8.dev
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:args_macro/args_macro.dart';