Skip to content

Commit c5f12bb

Browse files
committed
Enhance flash-firmware command examples
1 parent 307c2b2 commit c5f12bb

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

cli/flash_firmware/flash_firmware.go

+9-6
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,15 @@ var (
4040
// NewCommand created a new `version` command
4141
func NewCommand() *cobra.Command {
4242
command := &cobra.Command{
43-
Use: "flash-firmware",
44-
Short: "Shows version number of FirmwareUploader.",
45-
Long: "Shows the version number of FirmwareUploader which is installed on your system.",
46-
Example: " " + os.Args[0] + " version",
47-
Args: cobra.NoArgs,
48-
Run: run,
43+
Use: "flash-firmware",
44+
Short: "Flashes firmwares to board.",
45+
Long: "Flashes specified module firmware to board at specified address. Module name and version can be omitted to install latest version.",
46+
Example: "" +
47+
" " + os.Args[0] + " flash-firmware --fqbn arduino:samd:mkr1000 --address COM10 --module [email protected]\n" +
48+
" " + os.Args[0] + " flash-firmware -b arduino:samd:mkr1000 -a COM10 -m WINC15000\n" +
49+
" " + os.Args[0] + " flash-firmware -b arduino:samd:mkr1000 -a COM10\n",
50+
Args: cobra.NoArgs,
51+
Run: run,
4952
}
5053

5154
command.Flags().StringVarP(&fqbn, "fqbn", "b", "", "Fully Qualified Board Name, e.g.: arduino:samd:mkr1000, arduino:mbed_nano:nanorp2040connect")

0 commit comments

Comments
 (0)