Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Issue 10377023: Using arg parsing lib for dart2js. (Closed)

Created:
8 years, 7 months ago by Bob Nystrom
Modified:
8 years, 7 months ago
Reviewers:
ahe, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Using arg parsing lib for dart2js. Committed: https://code.google.com/p/dart/source/detail?r=7392

Patch Set 1 #

Total comments: 9

Patch Set 2 : Update with review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -69 lines) Patch
M lib/args/args.dart View 8 chunks +54 lines, -10 lines 0 comments Download
M lib/compiler/implementation/dart2js.dart View 1 3 chunks +44 lines, -35 lines 0 comments Download
M tests/lib/args/args_test.dart View 13 chunks +67 lines, -24 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Bob Nystrom
I figured I'd go ahead and try out integrating my arg parser into dart2js. Let ...
8 years, 7 months ago (2012-05-05 00:08:09 UTC) #1
kasperl
LGTM. Thanks a lot for doing this, Bob! It would be great if we can ...
8 years, 7 months ago (2012-05-07 11:49:35 UTC) #2
ahe
Hi Bob, Thank you for doing this! Changes to dart2js: LGTM Wishes for future tweaks: ...
8 years, 7 months ago (2012-05-07 12:49:05 UTC) #3
Bob Nystrom
On 2012/05/07 12:49:05, ahe wrote: > Hi Bob, > > Thank you for doing this! ...
8 years, 7 months ago (2012-05-07 18:21:56 UTC) #4
Bob Nystrom
8 years, 7 months ago (2012-05-07 18:22:05 UTC) #5
https://chromiumcodereview.appspot.com/10377023/diff/1/lib/compiler/implement...
File lib/compiler/implementation/dart2js.dart (right):

https://chromiumcodereview.appspot.com/10377023/diff/1/lib/compiler/implement...
lib/compiler/implementation/dart2js.dart:21: // Set up and parse the command
line arguments.
On 2012/05/07 12:49:06, ahe wrote:
> Could you move the parser construction into a separate method?

Done.

https://chromiumcodereview.appspot.com/10377023/diff/1/lib/compiler/implement...
lib/compiler/implementation/dart2js.dart:22: ArgParser parser = new
ArgParser(usage: 'dart2js [options...] <entrypoint>');
On 2012/05/07 12:49:06, ahe wrote:
> On 2012/05/07 11:49:35, kasperl wrote:
> > <entrypoint> -> <input>?
> 
> How about <dart file> or <file>?

<input entrypoint dart file>? ;)

Changed to <dart file>

https://chromiumcodereview.appspot.com/10377023/diff/1/lib/compiler/implement...
lib/compiler/implementation/dart2js.dart:27: parser.addFlag('verbose', abbr:
'v',
On 2012/05/07 11:49:35, kasperl wrote:
> I'd prefer it if abbr wasn't abbreviated (feedback on lib/args).

I'm not crazy about it either. I think I'll change it to "short" in a later
patch.

https://chromiumcodereview.appspot.com/10377023/diff/1/lib/compiler/implement...
lib/compiler/implementation/dart2js.dart:36: defaultsTo: 'out.js');
On 2012/05/07 11:49:35, kasperl wrote:
> Indentation.

Done.

Powered by Google App Engine
This is Rietveld 408576698