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

Side by Side Diff: lib/src/arg_results.dart

Issue 1575233006: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/args@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/src/arg_parser.dart ('k') | lib/src/help_command.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library args.src.arg_results;
6
7 import 'dart:collection'; 5 import 'dart:collection';
8 6
9 import 'arg_parser.dart'; 7 import 'arg_parser.dart';
10 8
11 /// Creates a new [ArgResults]. 9 /// Creates a new [ArgResults].
12 /// 10 ///
13 /// Since [ArgResults] doesn't have a public constructor, this lets [Parser] 11 /// Since [ArgResults] doesn't have a public constructor, this lets [Parser]
14 /// get to it. This function isn't exported to the public API of the package. 12 /// get to it. This function isn't exported to the public API of the package.
15 ArgResults newArgResults(ArgParser parser, Map<String, dynamic> parsed, 13 ArgResults newArgResults(ArgParser parser, Map<String, dynamic> parsed,
16 String name, ArgResults command, List<String> rest, 14 String name, ArgResults command, List<String> rest,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 /// value would be used instead. 85 /// value would be used instead.
88 bool wasParsed(String name) { 86 bool wasParsed(String name) {
89 var option = _parser.options[name]; 87 var option = _parser.options[name];
90 if (option == null) { 88 if (option == null) {
91 throw new ArgumentError('Could not find an option named "$name".'); 89 throw new ArgumentError('Could not find an option named "$name".');
92 } 90 }
93 91
94 return _parsed.containsKey(name); 92 return _parsed.containsKey(name);
95 } 93 }
96 } 94 }
OLDNEW
« no previous file with comments | « lib/src/arg_parser.dart ('k') | lib/src/help_command.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698