Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

make compile command optional, fixes #505 #590

Merged
merged 2 commits into from
Jun 14, 2016
Merged

Conversation

jmesserly
Copy link
Contributor

I left the commands in there for backwards compatibility, and to make the change easier.

Here is the CL that rolls the SDK forward to this: https://codereview.chromium.org/2065733004

@jmesserly
Copy link
Contributor Author

@vsmenon do you mind taking a look?
Sent as a pull request so I can merge it (instead of squashing) and therefore test the SDK side.

@jmesserly
Copy link
Contributor Author

BTW, the reason this needs doing now: SDK has a script that passes "--dart-sdk" before the user's arguments. That is not supported by commands in the args package. So DDC is broken in the SDK currently.

if (args.isEmpty || args.first != 'compile' && args.first != 'help') {
// TODO(jmesserly): we should deprecate the commands. For now they are
// still supported for backwards compatibility.
args.insert(0, 'compile');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it may not be obvious from this diff view, but if you expand the file above, you can see that we're guaranteed a fresh mutable list (and there's a comment about it).

@vsmenon
Copy link
Contributor

vsmenon commented Jun 14, 2016

lgtm

@jmesserly
Copy link
Contributor Author

Thanks!

@jmesserly jmesserly merged commit 70e2996 into master Jun 14, 2016
@kevmoo kevmoo deleted the 505_compile_cmd branch June 16, 2016 18:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

2 participants