Skip to content

Fixed commands used as examples for CLI board commands #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion commands/board/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func initAttachCommand() *cobra.Command {
Use: "attach <port>|<FQBN> [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),
Expand Down
2 changes: 1 addition & 1 deletion commands/board/board.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down