From 9b11da8e62e5b45482c4abf42ace227aa5c04c1d Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 28 Jun 2020 17:12:30 -0400 Subject: [PATCH] edit readme and helper message --- README.md | 3 ++- cmd/commander/commander.go | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 099e0df6..9e60f326 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,8 @@ $ ./commander test /tmp/test.yaml # Execute a single test $ ./commander test /tmp/test.yaml "my test" -# Execute suites within a test directory +# Execute suites within a test directory, +# directory can only contain subdirs and valid test files $ ./commander test --dir /tmp ``` diff --git a/cmd/commander/commander.go b/cmd/commander/commander.go index 08dc5922..33dfc475 100644 --- a/cmd/commander/commander.go +++ b/cmd/commander/commander.go @@ -60,8 +60,9 @@ func createTestCommand() cli.Command { EnvVar: "COMMANDER_VERBOSE", }, cli.BoolFlag{ - Name: "dir", - Usage: "Execute all test files in a directory sorted by file name, this is not recursive - e.g. /path/to/test_files/", + Name: "dir", + Usage: `Execute all test files in a directory sorted by file name, this is not recursive - e.g. /path/to/test_files/ + The directory can only contain subdirs and valid test files`, }, }, Action: func(c *cli.Context) error {