Skip to content

Commit

Permalink
edit readme and helper message
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhitt committed Jun 28, 2020
1 parent 1267eea commit 9b11da8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
5 changes: 3 additions & 2 deletions cmd/commander/commander.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9b11da8

Please sign in to comment.