Skip to content

Commit 9c10e06

Browse files
Massimiliano Pippimasci
Massimiliano Pippi
authored andcommitted
Fix regression on compile and upload with attached sketches (#545)
* fix regression on board attach * fix integration tests
1 parent bdce7e9 commit 9c10e06

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

cli/upload/upload.go

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
/*
2-
* This file is part of arduino-cli.
3-
*
4-
* Copyright 2018 ARDUINO SA (http://www.arduino.cc/)
5-
*
6-
* This software is released under the GNU General Public License version 3,
7-
* which covers the main part of arduino-cli.
8-
* The terms of this license can be found at:
9-
* https://www.gnu.org/licenses/gpl-3.0.en.html
10-
*
11-
* You can be released from the requirements of the above licenses by purchasing
12-
* a commercial license. Buying such a license is mandatory if you want to modify or
13-
* otherwise use the software for commercial activities involving the Arduino
14-
* software without disclosing the source code of your own applications. To purchase
15-
* a commercial license, send an email to license@arduino.cc.
16-
*/
1+
// This file is part of arduino-cli.
2+
//
3+
// Copyright 2020 ARDUINO SA (http://www.arduino.cc/)
4+
//
5+
// This software is released under the GNU General Public License version 3,
6+
// which covers the main part of arduino-cli.
7+
// The terms of this license can be found at:
8+
// https://www.gnu.org/licenses/gpl-3.0.en.html
9+
//
10+
// You can be released from the requirements of the above licenses by purchasing
11+
// a commercial license. Buying such a license is mandatory if you want to
12+
// modify or otherwise use the software for commercial activities involving the
13+
// Arduino software without disclosing the source code of your own applications.
14+
// To purchase a commercial license, send an email to license@arduino.cc.
1715

1816
package upload
1917

@@ -56,6 +54,8 @@ func NewCommand() *cobra.Command {
5654
uploadCommand.Flags().BoolVarP(&verify, "verify", "t", false, "Verify uploaded binary after the upload.")
5755
uploadCommand.Flags().BoolVarP(&verbose, "verbose", "v", false, "Optional, turns on verbose mode.")
5856

57+
uploadCommand.MarkFlagRequired("port")
58+
5959
return uploadCommand
6060
}
6161

0 commit comments

Comments
 (0)