diff --git a/command/job_init.go b/command/job_init.go index 29b991567c7..69ded3aa359 100644 --- a/command/job_init.go +++ b/command/job_init.go @@ -5,6 +5,8 @@ import ( "io/ioutil" "os" "strings" + + "github.com/posener/complete" ) const ( @@ -39,6 +41,13 @@ func (c *JobInitCommand) Synopsis() string { return "Create an example job file" } +func (c *JobInitCommand) AutocompleteFlags() complete.Flags { + return mergeAutocompleteFlags(c.Meta.AutocompleteFlags(FlagSetClient), + complete.Flags{ + "-short": complete.PredictNothing, + }) +} + func (c *JobInitCommand) Name() string { return "job init" } func (c *JobInitCommand) Run(args []string) int {