Skip to content

fix: DirectoryGeneratorTarget error: Too many positional arguments: 1 allowed, but 2 found. #255

@korzonkiee

Description

@korzonkiee

Description

~ very_good --help

Building package executable...
Failed to build very_good_cli:very_good:
.pub-cache/hosted/pub.dartlang.org/very_good_cli-0.4.12/lib/src/commands/create.dart:147:31: Error: Too many positional arguments: 1 allowed, but 2 found.
Try removing the extra positional arguments.
      DirectoryGeneratorTarget(outputDirectory, _logger),
                              ^

Steps To Reproduce

  1. Activate the newest very_good_cli package: dart pub global activate very_good_cli 0.4.12
  2. Run: very_good --help
  3. See error

Expected Behavior
There should be no error.

Screenshots
CleanShot 2022-01-19 at 10 22 39

Additional Context
The error doesn't occur on version 0.4.11.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions