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

Unified Diff: lib/src/command_runner.dart

Issue 1892683002: Print the full usage for invalid option errors. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/command_runner.dart
diff --git a/lib/src/command_runner.dart b/lib/src/command_runner.dart
index a7ee61b1fb2ab9d3ebc57f473b3c0e82dda024f1..09ecf40f755b0048eaa07064d450f47b95b67a52 100644
--- a/lib/src/command_runner.dart
+++ b/lib/src/command_runner.dart
@@ -84,7 +84,7 @@ class PubCommandRunner extends CommandRunner {
try {
options = super.parse(arguments);
} on UsageException catch (error) {
- log.error(error.message);
+ log.exception(error);
await flushThenExit(exit_codes.USAGE);
}
await runCommand(options);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698