github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+incompatible/actor/actionerror/command_line_options_and_manifest_conflict_error.go (about)

     1  package actionerror
     2  
     3  import (
     4  	"fmt"
     5  	"strings"
     6  )
     7  
     8  type CommandLineOptionsAndManifestConflictError struct {
     9  	ManifestAttribute  string
    10  	CommandLineOptions []string
    11  }
    12  
    13  func (e CommandLineOptionsAndManifestConflictError) Error() string {
    14  	return fmt.Sprintf("cannot use manifest attribute %s with command line options: %s",
    15  		e.ManifestAttribute, strings.Join(e.CommandLineOptions, ", "),
    16  	)
    17  }