diff --git a/commands/board/attach.go b/commands/board/attach.go index 29142061728..9f7e5516358 100644 --- a/commands/board/attach.go +++ b/commands/board/attach.go @@ -40,7 +40,7 @@ func initAttachCommand() *cobra.Command { Use: "attach | [sketchPath]", Short: "Attaches a sketch to a board.", Long: "Attaches a sketch to a board.", - Example: "arduino board attach serial:///dev/tty/ACM0\n" + + Example: " " + commands.AppName + " board attach serial:///dev/tty/ACM0\n" + " " + commands.AppName + " board attach serial:///dev/tty/ACM0 HelloWorld\n" + " " + commands.AppName + " board attach arduino:samd:mkr1000", Args: cobra.RangeArgs(1, 2), diff --git a/commands/board/board.go b/commands/board/board.go index 136b03fb405..0e005d2a28a 100644 --- a/commands/board/board.go +++ b/commands/board/board.go @@ -31,7 +31,7 @@ func InitCommand() *cobra.Command { Example: " # Lists all connected boards.\n" + " " + commands.AppName + " board list\n\n" + " # Attaches a sketch to a board.\n" + - " " + commands.AppName + " board attach --board serial:///dev/tty/ACM0 --sketch mySketch", + " " + commands.AppName + " board attach serial:///dev/tty/ACM0 mySketch", } boardCommand.AddCommand(initAttachCommand()) boardCommand.AddCommand(initListCommand())