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

Unified Diff: pkg/args/lib/src/usage_exception.dart

Issue 797473002: Add a CommandRunner class for dispatching commands to args. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 years 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
Index: pkg/args/lib/src/usage_exception.dart
diff --git a/pkg/docgen/test/multi_library_code/lib/test_lib2_foo.dart b/pkg/args/lib/src/usage_exception.dart
similarity index 51%
copy from pkg/docgen/test/multi_library_code/lib/test_lib2_foo.dart
copy to pkg/args/lib/src/usage_exception.dart
index 1b3d037c5bce3add4829e93b527bc5eb7f01f821..35cc7442e549b93da0e825ae660171c7361c3647 100644
--- a/pkg/docgen/test/multi_library_code/lib/test_lib2_foo.dart
+++ b/pkg/args/lib/src/usage_exception.dart
@@ -2,14 +2,13 @@
// 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 test_lib2_foo;
+library args.usage_exception;
-export 'test_lib2_bar.dart';
+class UsageException implements Exception {
+ final String message;
+ final String usage;
-class Foo {
+ UsageException(this.message, this.usage);
-}
-
-main() {
- print('hello world');
+ String toString() => "$message\n\n$usage";
}

Powered by Google App Engine
This is Rietveld 408576698