9684: update arvados_model -> recursive_stringify to convert ":foo" to "foo"
[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         "CrunchRunCommand": ["crunch-run"],
12         "PollPeriod": "10s",
13         "SbatchArguments": ["--partition=foo", "--exclude=node13"]
14     }`)
15
16 func usage(fs *flag.FlagSet) {
17         fmt.Fprintf(os.Stderr, `
18 crunch-dispatch-slurm runs queued Arvados containers by submitting
19 SLURM batch jobs.
20
21 Options:
22 `)
23         fs.PrintDefaults()
24         fmt.Fprintf(os.Stderr, `
25 Example config file:
26 %s
27 `, exampleConfigFile)
28 }