Skip to content

Adding handling commandline arguments for "dart run"Β #56620

@brilliapps

Description

@brilliapps

Dart doesn't handle commandline arguments for "dart run" command, like flutter does, for example:

flutter run -d windows --debug -a debugging
void main(List<String> args) {
  bool isDebugging = args.contains('debugging') ? true : false; 
}

My new feature request is for "dart run" to handle the custom commanline arguments like "dart file.dart myArgument"
and "dart run file.dart myArgument" do, or optionally like flutter does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.dart-cli-runIssues related to 'dart run'type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions