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

Unified Diff: packages/args/lib/src/arg_parser.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/args/lib/command_runner.dart ('k') | packages/args/lib/src/arg_parser_exception.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/args/lib/src/arg_parser.dart
diff --git a/packages/args/lib/src/arg_parser.dart b/packages/args/lib/src/arg_parser.dart
index c32741df94e4115e82e8dedfa3ee75088f88aeb8..fa80031a58914f2a0f04fb1333d497843d7b6a3f 100644
--- a/packages/args/lib/src/arg_parser.dart
+++ b/packages/args/lib/src/arg_parser.dart
@@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library args.src.arg_parser;
-
import 'dart:collection';
import 'arg_results.dart';
@@ -37,12 +35,12 @@ class ArgParser {
/// after it finds an argument that is neither an option nor a command.
/// This allows options to be specified after regular arguments. Defaults to
/// `false`.
- factory ArgParser({bool allowTrailingOptions}) => new ArgParser._(
+ factory ArgParser({bool allowTrailingOptions: false}) => new ArgParser._(
<String, Option>{}, <String, ArgParser>{},
allowTrailingOptions: allowTrailingOptions);
ArgParser._(Map<String, Option> options, Map<String, ArgParser> commands,
- {bool allowTrailingOptions})
+ {bool allowTrailingOptions: false})
: this._options = options,
this.options = new UnmodifiableMapView(options),
this._commands = commands,
@@ -132,7 +130,7 @@ class ArgParser {
/// Parses [args], a list of command-line arguments, matches them against the
/// flags and options defined by this parser, and returns the result.
ArgResults parse(List<String> args) =>
- new Parser(null, this, args.toList(), null, null).parse();
+ new Parser(null, this, args.toList()).parse();
/// Generates a string displaying usage information for the defined options.
///
« no previous file with comments | « packages/args/lib/command_runner.dart ('k') | packages/args/lib/src/arg_parser_exception.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698