dart-archive / www.dartlang.org

DEPRECATED - OLD SITE for DART
Other
196 stars 149 forks source link

Update the "pub run" documentation to reflect current behavior #1588

Closed nex3 closed 8 years ago

nex3 commented 8 years ago

The documentation for pub run is outdated—it's no longer valid to use pub run foo/bar to run the file foo/bar.dart. There are now three valid ways of specifying the executable:

nex3 commented 8 years ago

I misremembered and misread the code; the current documentation is actually fine.

skybrian commented 8 years ago

The documentation still looks wrong to me. Specifically:

$ pub run foo arg1 arg2
This command looks in your package’s bin directory for the specified script and invokes it, passing in any arguments.

The example is using a Dart identifier, but the explanation is for when the user typed "foo.dart".

It seems like the docs should say what you just said in https://github.com/dart-lang/pub/issues/1428#issuecomment-230909731, explaining the difference between running "foo.dart" versus "foo".

Sfshaza commented 8 years ago

This issue was moved to dart-lang/site-www#35