Merge branch '9684-workflows'
[arvados.git] / services / crunch-dispatch-slurm / usage.go
1 package main
2
3 import (
4         "flag"
5         "fmt"
6         "os"
7 )
8
9 var exampleConfigFile = []byte(`
10     {
11         "Client": {
12             "APIHost": "zzzzz.arvadosapi.com",
13             "AuthToken": "xyzzy",
14             "Insecure": false
15         },
16         "CrunchRunCommand": ["crunch-run"],
17         "PollPeriod": "10s",
18         "SbatchArguments": ["--partition=foo", "--exclude=node13"]
19     }`)
20
21 func usage(fs *flag.FlagSet) {
22         fmt.Fprintf(os.Stderr, `
23 crunch-dispatch-slurm runs queued Arvados containers by submitting
24 SLURM batch jobs.
25
26 Options:
27 `)
28         fs.PrintDefaults()
29         fmt.Fprintf(os.Stderr, `
30 Example config file:
31 %s
32 `, exampleConfigFile)
33 }