10868: Add fake uuid to test case for more realistic log messages.
[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             "KeepServiceURIs": [],
16         },
17         "CrunchRunCommand": ["crunch-run"],
18         "PollPeriod": "10s",
19         "SbatchArguments": ["--partition=foo", "--exclude=node13"]
20     }`)
21
22 func usage(fs *flag.FlagSet) {
23         fmt.Fprintf(os.Stderr, `
24 crunch-dispatch-slurm runs queued Arvados containers by submitting
25 SLURM batch jobs.
26
27 Options:
28 `)
29         fs.PrintDefaults()
30         fmt.Fprintf(os.Stderr, `
31 Example config file:
32 %s
33 `, exampleConfigFile)
34 }