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

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

Issue 23913009: Add support for hidden options to pkg/args. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 5f1f48405ce04c627881789875c71c731cd641ff..06eeaf515ee7fe3bd15cbb221b93405d70124749 100644
--- a/pkg/args/lib/src/options.dart
+++ b/pkg/args/lib/src/options.dart
@@ -16,10 +16,12 @@ class Option {
final bool isFlag;
final bool negatable;
final bool allowMultiple;
+ final bool isHidden;
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}) :
+ {this.isFlag, this.negatable, this.allowMultiple: false,
+ this.isHidden: false}) :
this.allowed = allowed == null ?
null : new UnmodifiableListView(allowed),
this.allowedHelp = allowedHelp == null ?

Powered by Google App Engine
This is Rietveld 408576698