command: allow -no-color option on "providers" command

This commit is contained in:
Charles Kenney 2018-12-17 13:55:16 -05:00 committed by Martin Atkins
parent 82f5f50fe7
commit 2dfc3a399d
1 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,10 @@ func (c *ProvidersCommand) Synopsis() string {
}
func (c *ProvidersCommand) Run(args []string) int {
c.Meta.process(args, false)
args, err := c.Meta.process(args, false)
if err != nil {
return 1
}
cmdFlags := c.Meta.defaultFlagSet("providers")
cmdFlags.Usage = func() { c.Ui.Error(c.Help()) }