Skip to content

Commit 740d0f7

Browse files
committed
Correct key name in arduino-cli compile --dump-profile output
The `--dump-profile` flag causes Arduino CLI to print the board and sketch dependencies of that compilation as a YAML document. This could be copied into a "sketch project file" for later use as a "build profile" specified via the `--profile` flag. A typo in the `profiles` key name caused the generated "build profile" entry to not be recognized when added to a "sketch project file". The key name is hereby corrected.
1 parent f43c9ec commit 740d0f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cli/compile/compile.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func runCompileCommand(cmd *cobra.Command, args []string) {
303303
newProfileName = split[2]
304304
}
305305
fmt.Println()
306-
fmt.Println("profile:")
306+
fmt.Println("profiles:")
307307
fmt.Println(" " + newProfileName + ":")
308308
fmt.Println(" fqbn: " + compileRequest.GetFqbn())
309309
fmt.Println(" platforms:")

0 commit comments

Comments
 (0)