diff --git a/cmd/task/task.go b/cmd/task/task.go index bc788e39..5a3893b8 100644 --- a/cmd/task/task.go +++ b/cmd/task/task.go @@ -86,7 +86,7 @@ func main() { pflag.BoolVarP(&verbose, "verbose", "v", false, "enables verbose mode") pflag.BoolVarP(&silent, "silent", "s", false, "disables echoing") pflag.BoolVarP(¶llel, "parallel", "p", false, "executes tasks provided on command line in parallel") - pflag.BoolVar(&dry, "dry", false, "compiles and prints tasks in the order that they would be run, without executing them") + pflag.BoolVarP(&dry, "dry", "n", false, "compiles and prints tasks in the order that they would be run, without executing them") pflag.BoolVar(&summary, "summary", false, "show summary about a task") pflag.BoolVarP(&exitCode, "exit-code", "x", false, "pass-through the exit code of the task command") pflag.StringVarP(&dir, "dir", "d", "", "sets directory of execution") diff --git a/docs/docs/api_reference.md b/docs/docs/api_reference.md index 91ccc793..6bb6549b 100644 --- a/docs/docs/api_reference.md +++ b/docs/docs/api_reference.md @@ -25,7 +25,7 @@ variable | `-c` | `--color` | `bool` | `true` | Colored output. Enabled by default. Set flag to `false` or use `NO_COLOR=1` to disable. | | `-C` | `--concurrency` | `int` | `0` | Limit number tasks to run concurrently. Zero means unlimited. | | `-d` | `--dir` | `string` | Working directory | Sets directory of execution. | -| | `--dry` | `bool` | `false` | Compiles and prints tasks in the order that they would be run, without executing them. | +| '-n' | `--dry` | `bool` | `false` | Compiles and prints tasks in the order that they would be run, without executing them. | | `-x` | `--exit-code` | `bool` | `false` | Pass-through the exit code of the task command. | | `-f` | `--force` | `bool` | `false` | Forces execution even when the task is up-to-date. | | `-h` | `--help` | `bool` | `false` | Shows Task usage. |