mirror of
https://github.com/go-task/task.git
synced 2024-12-14 10:52:43 +02:00
commit
a3bfa13670
@ -14,14 +14,14 @@ var (
|
||||
version = "master"
|
||||
)
|
||||
|
||||
func main() {
|
||||
log.SetFlags(0)
|
||||
const usage = `Usage: task [-ifw] [--init] [--force] [--watch] [task...]
|
||||
|
||||
pflag.Usage = func() {
|
||||
fmt.Println(`task [target1 target2 ...]: Runs commands under targets like make.
|
||||
Runs the specified task(s). Falls back to the "default" task if no task name
|
||||
was specified, or lists all tasks if an unknown task name was specified.
|
||||
|
||||
Example: 'task hello' with the following 'Taskfile.yml' file will generate an
|
||||
'output.txt' file with the content "hello".
|
||||
|
||||
Example: 'task hello' with the following 'Taskfile.yml' file will generate
|
||||
an 'output.txt' file.
|
||||
'''
|
||||
hello:
|
||||
cmds:
|
||||
@ -30,7 +30,13 @@ hello:
|
||||
generates:
|
||||
- output.txt
|
||||
'''
|
||||
`)
|
||||
`
|
||||
|
||||
func main() {
|
||||
log.SetFlags(0)
|
||||
|
||||
pflag.Usage = func() {
|
||||
fmt.Println(usage)
|
||||
pflag.PrintDefaults()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user