improve help message for fs missing input

This commit is contained in:
Alex Dadgar 2016-05-16 11:08:28 -07:00
parent 749b239890
commit 312c51fc2d

View file

@ -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
}