improve help message for fs missing input
This commit is contained in:
parent
749b239890
commit
312c51fc2d
|
@ -63,7 +63,12 @@ func (f *FSCommand) Run(args []string) int {
|
|||
args = flags.Args()
|
||||
|
||||
if len(args) < 1 {
|
||||
f.Ui.Error("allocation id or -job is required")
|
||||
if job {
|
||||
f.Ui.Error("job ID is required")
|
||||
} else {
|
||||
f.Ui.Error("allocation ID is required")
|
||||
}
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue