From 2b09a4c30256e53a6b3be03f3982a1bd243dfd87 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Mon, 16 May 2016 11:08:28 -0700 Subject: [PATCH] improve help message for fs missing input --- command/fs.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/command/fs.go b/command/fs.go index af252bcc3..2c66b0f41 100644 --- a/command/fs.go +++ b/command/fs.go @@ -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 }