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

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

Issue 631123002: Swap getUsage() for get usage in args package (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Bump args version, add to args CHANGELOG Created 6 years, 2 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 | « pkg/args/CHANGELOG.md ('k') | pkg/args/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/args/lib/src/arg_parser.dart
diff --git a/pkg/args/lib/src/arg_parser.dart b/pkg/args/lib/src/arg_parser.dart
index b1ee6280200885e982941823e3fa57b9aaa40659..03d8d3f55165197e7b297c6a070b5aced2a04655 100644
--- a/pkg/args/lib/src/arg_parser.dart
+++ b/pkg/args/lib/src/arg_parser.dart
@@ -115,8 +115,14 @@ class ArgParser {
/// Generates a string displaying usage information for the defined options.
///
/// This is basically the help text shown on the command line.
+ @Deprecated("Replaced with get usage. getUsage() will be removed in args 1.0")
String getUsage() => new Usage(this).generate();
+ /// Generates a string displaying usage information for the defined options.
+ ///
+ /// This is basically the help text shown on the command line.
+ String get usage => new Usage(this).generate();
+
/// Get the default value for an option. Useful after parsing to test if the
/// user specified something other than the default.
getDefault(String option) {
« no previous file with comments | « pkg/args/CHANGELOG.md ('k') | pkg/args/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698