| Index: pkg/args/test/usage_test.dart
|
| diff --git a/pkg/args/test/usage_test.dart b/pkg/args/test/usage_test.dart
|
| index 6068f321f315d678daa8749f6a400cbb8c65bbc0..364e3f892050c2bed48591122e9d4cec131cf277 100644
|
| --- a/pkg/args/test/usage_test.dart
|
| +++ b/pkg/args/test/usage_test.dart
|
| @@ -167,6 +167,20 @@ main() {
|
| [spades] Swords of a soldier
|
| ''');
|
| });
|
| +
|
| + test("hidden flags don't appear in the help", () {
|
| + var parser = new ArgParser();
|
| + parser.addOption('first', help: 'The first option');
|
| + parser.addOption('second', isHidden: true);
|
| + parser.addOption('third', help: 'The third option');
|
| +
|
| +
|
| + validateUsage(parser,
|
| + '''
|
| + --first The first option
|
| + --third The third option
|
| + ''');
|
| + });
|
| });
|
| }
|
|
|
|
|