| Index: test/command_runner_test.dart
|
| diff --git a/test/command_runner_test.dart b/test/command_runner_test.dart
|
| index f3a74a0bcc617eb4602050a6427e9985f94861aa..bccc7b318d6ce6b9f631ec52be475eaff5ea0ab3 100644
|
| --- a/test/command_runner_test.dart
|
| +++ b/test/command_runner_test.dart
|
| @@ -54,6 +54,25 @@ Available commands:
|
| Run "test help <command>" for more information about a command."""));
|
| });
|
|
|
| + test("supports newlines in command descriptions", () {
|
| + runner.addCommand(new MultilineCommand());
|
| +
|
| + expect(runner.usage, equals("""
|
| +A test command runner.
|
| +
|
| +Usage: test <command> [arguments]
|
| +
|
| +Global options:
|
| +-h, --help Print this usage information.
|
| +
|
| +Available commands:
|
| + help Display help information for test.
|
| + multiline Multi
|
| + line.
|
| +
|
| +Run "test help <command>" for more information about a command."""));
|
| + });
|
| +
|
| test("contains custom options", () {
|
| runner.argParser.addFlag("foo", help: "Do something.");
|
|
|
|
|