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

Unified Diff: pkg/args/args.dart

Issue 10933052: Take external patch from https://chromiumcodereview.appspot.com/10918056/. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/args/args.dart
diff --git a/pkg/args/args.dart b/pkg/args/args.dart
index 152fcc675d7c562fb588520e9788f73fd1534c1d..69c7d2820e22aae76e27d2a736b74d76ed7a33ca 100644
--- a/pkg/args/args.dart
+++ b/pkg/args/args.dart
@@ -23,6 +23,11 @@
*
* parser.addFlag('name');
*
+ * Flag options will, by default, accept a 'no-' prefix to negate the option.
+ * This can be disabled like so:
+ *
+ * parser.addFlag('name', negatable: false);
+ *
* (From here on out "option" will refer to both "regular" options and flags.
* In cases where the distinction matters, we'll use "non-flag option".)
*
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698