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

Unified Diff: lib/command_runner.dart

Issue 1985883002: UsageException isn't called UsageError. (Closed) Base URL: git@github.com:dart-lang/args@master
Patch Set: Created 4 years, 7 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 | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/command_runner.dart
diff --git a/lib/command_runner.dart b/lib/command_runner.dart
index d0cbf261b9a28e2cd29dd53a462eb1f35451485b..1e33965cc0b55cacdd59640ef324bf21a2c21653 100644
--- a/lib/command_runner.dart
+++ b/lib/command_runner.dart
@@ -98,7 +98,7 @@ Run "$executableName help <command>" for more information about a command.''';
/// Parses [args] and invokes [Command.run] on the chosen command.
///
/// This always returns a [Future] in case the command is asynchronous. The
- /// [Future] will throw a [UsageError] if [args] was invalid.
+ /// [Future] will throw a [UsageException] if [args] was invalid.
Future run(Iterable<String> args) =>
new Future.sync(() => runCommand(parse(args)));
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698