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

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

Issue 82213002: Add a [hide] argument to [ArgParser.addFlag]. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | 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/args.dart
diff --git a/pkg/args/lib/args.dart b/pkg/args/lib/args.dart
index 7f524dfb4268125f893ac7374410269875eeab95..a76e72646d8afffa488f268200258c3139bba516 100644
--- a/pkg/args/lib/args.dart
+++ b/pkg/args/lib/args.dart
@@ -321,9 +321,9 @@ class ArgParser {
* * There is already an option using abbreviation [abbr].
*/
void addFlag(String name, {String abbr, String help, bool defaultsTo: false,
- bool negatable: true, void callback(bool value)}) {
+ bool negatable: true, void callback(bool value), bool hide: false}) {
_addOption(name, abbr, help, null, null, defaultsTo, callback,
- isFlag: true, negatable: negatable);
+ isFlag: true, negatable: negatable, hide: hide);
}
/**
« no previous file with comments | « no previous file | pkg/args/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698