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

Unified Diff: pkg/args/test/usage_test.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
« pkg/args/README.md ('K') | « pkg/args/pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/args/test/usage_test.dart
diff --git a/pkg/args/test/usage_test.dart b/pkg/args/test/usage_test.dart
index 77d66a83153c630248e6104d56547f7cc6d5e09f..b6b860d4a2b0509968f569f6fff6b0a21721f1cb 100644
--- a/pkg/args/test/usage_test.dart
+++ b/pkg/args/test/usage_test.dart
@@ -122,6 +122,17 @@ void main() {
''');
});
+ test('the value help is shown', () {
+ var parser = new ArgParser();
+ parser.addOption('out', abbr: 'o', help: 'Where to write file',
+ valueHelp: 'path');
+
+ validateUsage(parser,
+ '''
+ -o, --out=<path> Where to write file
+ ''');
+ });
+
test('the allowed list is shown', () {
var parser = new ArgParser();
parser.addOption('suit', help: 'Like in cards',
« pkg/args/README.md ('K') | « pkg/args/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698