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

Issue 10828351: Added the ability to get the names of the options in a set of parsed arguments, and the default val… (Closed)

Created:
8 years, 4 months ago by gram
Modified:
8 years, 4 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Added the ability to get the names of the options in a set of parsed arguments, and the default value for an argument. These are useful so we can see what the user has explicitly set that is non-default behavior. Committed: https://code.google.com/p/dart/source/detail?r=10904

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 11

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -1 line) Patch
M lib/args/args.dart View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M tests/lib/args/args_test.dart View 1 2 1 chunk +29 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
gram
8 years, 4 months ago (2012-08-16 17:34:57 UTC) #1
Bob Nystrom
Tests? https://chromiumcodereview.appspot.com/10828351/diff/1/lib/args/args.dart File lib/args/args.dart (right): https://chromiumcodereview.appspot.com/10828351/diff/1/lib/args/args.dart#newcode495 lib/args/args.dart:495: * if the user specified something other than ...
8 years, 4 months ago (2012-08-16 21:26:58 UTC) #2
gram
https://chromiumcodereview.appspot.com/10828351/diff/1/lib/args/args.dart File lib/args/args.dart (right): https://chromiumcodereview.appspot.com/10828351/diff/1/lib/args/args.dart#newcode495 lib/args/args.dart:495: * if the user specified something other than the ...
8 years, 4 months ago (2012-08-16 21:55:53 UTC) #3
Bob Nystrom
https://chromiumcodereview.appspot.com/10828351/diff/3002/lib/args/args.dart File lib/args/args.dart (right): https://chromiumcodereview.appspot.com/10828351/diff/3002/lib/args/args.dart#newcode498 lib/args/args.dart:498: getDefault(String option) { Delete blank line above this. https://chromiumcodereview.appspot.com/10828351/diff/3002/lib/args/args.dart#newcode502 ...
8 years, 4 months ago (2012-08-16 22:22:09 UTC) #4
gram
https://chromiumcodereview.appspot.com/10828351/diff/3002/lib/args/args.dart File lib/args/args.dart (right): https://chromiumcodereview.appspot.com/10828351/diff/3002/lib/args/args.dart#newcode502 lib/args/args.dart:502: throw new IllegalArgumentException('No option named $option'); On 2012/08/16 22:22:10, ...
8 years, 4 months ago (2012-08-16 23:20:17 UTC) #5
Bob Nystrom
8 years, 4 months ago (2012-08-17 16:07:35 UTC) #6
LGTM!

Powered by Google App Engine
This is Rietveld 408576698