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

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

Issue 363083002: Allow defining a help string for an option's parameter value. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
Index: pkg/args/lib/src/options.dart
diff --git a/pkg/args/lib/src/options.dart b/pkg/args/lib/src/options.dart
index d78459e9b38809094c611a08f6f941308e5bca77..34dc8d30f39624e4988085e0eedb949023295ba4 100644
--- a/pkg/args/lib/src/options.dart
+++ b/pkg/args/lib/src/options.dart
@@ -10,15 +10,16 @@ class Option {
final defaultValue;
final Function callback;
final String help;
+ final String valueHelp;
final Map<String, String> allowedHelp;
final bool isFlag;
final bool negatable;
final bool allowMultiple;
final bool hide;
- Option(this.name, this.abbreviation, this.help, List<String> allowed,
- Map<String, String> allowedHelp, this.defaultValue, this.callback,
- {this.isFlag, this.negatable, this.allowMultiple: false,
+ Option(this.name, this.abbreviation, this.help, this.valueHelp,
+ List<String> allowed, Map<String, String> allowedHelp, this.defaultValue,
+ this.callback, {this.isFlag, this.negatable, this.allowMultiple: false,
this.hide: false}) :
this.allowed = allowed == null ?
null : new UnmodifiableListView(allowed),
« pkg/args/README.md ('K') | « pkg/args/lib/args.dart ('k') | pkg/args/lib/src/usage.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698