projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
21137: Prefer early return per review comments
[arvados.git]
/
services
/
crunch-dispatch-slurm
/
usage.go
diff --git
a/services/crunch-dispatch-slurm/usage.go
b/services/crunch-dispatch-slurm/usage.go
index 683ff763fbc0fbeafac20e49cc29a962b5a2e0ef..785843b1986a5e2e7d861985c442c1fe95ce214b 100644
(file)
--- a/
services/crunch-dispatch-slurm/usage.go
+++ b/
services/crunch-dispatch-slurm/usage.go
@@
-1,28
+1,24
@@
-package main
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+package dispatchslurm
import (
"flag"
"fmt"
import (
"flag"
"fmt"
- "os"
)
)
-var exampleConfigFile = []byte(`
- {
- "CrunchRunCommand": ["crunch-run"],
- "PollPeriod": "10s",
- "SbatchArguments": ["--partition=foo", "--exclude=node13"]
- }`)
-
func usage(fs *flag.FlagSet) {
func usage(fs *flag.FlagSet) {
- fmt.Fprintf(
os.Stderr
, `
+ fmt.Fprintf(
fs.Output()
, `
crunch-dispatch-slurm runs queued Arvados containers by submitting
SLURM batch jobs.
Options:
`)
fs.PrintDefaults()
crunch-dispatch-slurm runs queued Arvados containers by submitting
SLURM batch jobs.
Options:
`)
fs.PrintDefaults()
- fmt.Fprintf(
os.Stderr
, `
-Example config file:
-%s
-`
, exampleConfigFile
)
+ fmt.Fprintf(
fs.Output()
, `
+
+For configuration instructions see https://doc.arvados.org/install/crunch2-slurm/install-dispatch.html
+`)
}
}