|
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. |
17 | 15 |
|
18 | 16 | package upload
|
19 | 17 |
|
@@ -56,6 +54,8 @@ func NewCommand() *cobra.Command {
|
56 | 54 | uploadCommand.Flags().BoolVarP(&verify, "verify", "t", false, "Verify uploaded binary after the upload.")
|
57 | 55 | uploadCommand.Flags().BoolVarP(&verbose, "verbose", "v", false, "Optional, turns on verbose mode.")
|
58 | 56 |
|
| 57 | + uploadCommand.MarkFlagRequired("port") |
| 58 | + |
59 | 59 | return uploadCommand
|
60 | 60 | }
|
61 | 61 |
|
|
0 commit comments