Skip to content

Commit

Permalink
Add usage metadata to CliOption (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Jan 10, 2025
1 parent 20ec64c commit f27d4b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions build_cli_annotations/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## 2.1.1-wip

- Added `@Target({TargetKind.field})` to `CliOption`.
- Require `args: ^2.6.0`
- Require `sdk: ^3.6.0`

Expand Down
1 change: 1 addition & 0 deletions build_cli_annotations/lib/build_cli_annotations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class CliOptions {
}

/// Annotate fields to configure the generated [ArgParser] helpers.
@Target({TargetKind.field})
class CliOption {
final String? name;
final String? abbr;
Expand Down

0 comments on commit f27d4b1

Please sign in to comment.