We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78275fc commit 84aa1ffCopy full SHA for 84aa1ff
cli/compile/compile.go
@@ -146,6 +146,10 @@ func NewCommand() *cobra.Command {
146
func runCompileCommand(cmd *cobra.Command, args []string) {
147
logrus.Info("Executing `arduino-cli compile`")
148
149
+ if dumpProfile && feedback.GetFormat() != feedback.Text {
150
+ feedback.Errorf(tr("You cannot use the %[1]s flag together with %[2]s.", "--dump-profile", "--format json"))
151
+ os.Exit(errorcodes.ErrBadArgument)
152
+ }
153
if profileArg.Get() != "" {
154
if len(libraries) > 0 {
155
feedback.Errorf(tr("You cannot use the %s flag while compiling with a profile.", "--libraries"))
0 commit comments