Skip to content

Commit f3b0c34

Browse files
Gianluca Variscocmaglie
Gianluca Varisco
authored andcommitted
Fixed commands used as examples for CLI board commands
This commit fixes the text for the examples used when typing 'arduino-cli board attach' and 'arduino-cli board' as they shown the wrong commands (wrong AppName in the 'board attach' command, non-existing '--board' and '--sketch' arguments in 'board' command)
1 parent bab0336 commit f3b0c34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

commands/board/attach.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func initAttachCommand() *cobra.Command {
4040
Use: "attach <port>|<FQBN> [sketchPath]",
4141
Short: "Attaches a sketch to a board.",
4242
Long: "Attaches a sketch to a board.",
43-
Example: "arduino board attach serial:///dev/tty/ACM0\n" +
43+
Example: " arduino board attach serial:///dev/tty/ACM0\n" +
4444
" " + commands.AppName + " board attach serial:///dev/tty/ACM0 HelloWorld\n" +
4545
" " + commands.AppName + " board attach arduino:samd:mkr1000",
4646
Args: cobra.RangeArgs(1, 2),

commands/board/board.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func InitCommand() *cobra.Command {
3131
Example: " # Lists all connected boards.\n" +
3232
" " + commands.AppName + " board list\n\n" +
3333
" # Attaches a sketch to a board.\n" +
34-
" " + commands.AppName + " board attach --board serial:///dev/tty/ACM0 --sketch mySketch",
34+
" " + commands.AppName + " board attach serial:///dev/tty/ACM0 mySketch",
3535
}
3636
boardCommand.AddCommand(initAttachCommand())
3737
boardCommand.AddCommand(initListCommand())

0 commit comments

Comments
 (0)