diff --git a/README.md b/README.md index a7d07281..e0526ab5 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ task assets build If Bash is available (Linux and Windows while on Git Bash), the commands will run in Bash, otherwise will fallback to `cmd` (on Windows). +If you ommit a task name a name of default will be assumed. ### Environment You can specify environment variables that are added when running a command: diff --git a/task.go b/task.go index 1896291a..f0c14b87 100644 --- a/task.go +++ b/task.go @@ -54,7 +54,8 @@ func Run() { args := pflag.Args() if len(args) == 0 { - log.Fatal("task: No argument given") + log.Println("task: No argument given, trying default task") + args = []string{"default"} } var err error