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

Unified Diff: pkg/args/args.dart

Issue 10918056: Add documentation for addFlag negatable option (Closed) Base URL: http://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 acc557aed722942b6141e16f18766c1518f80002..ad6688a2e19e5fc019b8ea65ff59e551cd1910be 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 as such:
+ *
+ * paser.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