12715: Rename flag !reading => alwaysReadEOF.
[arvados.git] / services / crunch-dispatch-slurm / usage.go
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 package main
6
7 import (
8         "flag"
9         "fmt"
10         "os"
11 )
12
13 var exampleConfigFile = []byte(`
14     {
15         "Client": {
16             "APIHost": "zzzzz.arvadosapi.com",
17             "AuthToken": "xyzzy",
18             "Insecure": false
19             "KeepServiceURIs": [],
20         },
21         "CrunchRunCommand": ["crunch-run"],
22         "PollPeriod": "10s",
23         "SbatchArguments": ["--partition=foo", "--exclude=node13"]
24     }`)
25
26 func usage(fs *flag.FlagSet) {
27         fmt.Fprintf(os.Stderr, `
28 crunch-dispatch-slurm runs queued Arvados containers by submitting
29 SLURM batch jobs.
30
31 Options:
32 `)
33         fs.PrintDefaults()
34         fmt.Fprintf(os.Stderr, `
35 Example config file:
36 %s
37 `, exampleConfigFile)
38 }