Skip to content

dart help run shows too many options #42483

@mit-mit

Description

@mit-mit

dart help run shows a bunch of options I think we should remove or hide and only show with -v:

--package-root=<path> or -p<path>
  Where to find packages, that is, "package:..." imports.

=> remove, see #41197

--write-service-info=<file_uri>
  Outputs information necessary to connect to the VM service to the
  specified file in JSON format. Useful for clients which are unable to
  listen to stdout for the Observatory listening message.

=> move to -v, this is rarely needed by end users

--snapshot-kind=<snapshot_kind>
--snapshot=<file_name>
  These snapshot options are used to generate a snapshot of the loaded
  Dart script:
    <snapshot-kind> controls the kind of snapshot, it could be
                    kernel(default) or app-jit
    <file_name> specifies the file into which the snapshot is written

=> remove, we now have dart compile for this

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failuresarea-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions