37
37
verbose bool
38
38
verify bool
39
39
interpreter string
40
- importFile string
40
+ importDir string
41
41
)
42
42
43
43
// NewCommand created a new `upload` command
@@ -54,7 +54,7 @@ func NewCommand() *cobra.Command {
54
54
debugCommand .Flags ().StringVarP (& fqbn , "fqbn" , "b" , "" , "Fully Qualified Board Name, e.g.: arduino:avr:uno" )
55
55
debugCommand .Flags ().StringVarP (& port , "port" , "p" , "" , "Debug port, e.g.: COM10 or /dev/ttyACM0" )
56
56
debugCommand .Flags ().StringVar (& interpreter , "interpreter" , "console" , "Debug interpreter e.g.: console, mi, mi1, mi2, mi3" )
57
- debugCommand .Flags ().StringVarP (& importFile , "input" , "i " , "" , "Input file to be uploaded for debug." )
57
+ debugCommand .Flags ().StringVarP (& importDir , "input-dir " , "" , "" , "Direcory containing binaries for debug." )
58
58
59
59
return debugCommand
60
60
}
@@ -82,7 +82,7 @@ func run(command *cobra.Command, args []string) {
82
82
SketchPath : sketchPath .String (),
83
83
Port : port ,
84
84
Interpreter : interpreter ,
85
- ImportFile : importFile ,
85
+ ImportDir : importDir ,
86
86
}, os .Stdin , os .Stdout , ctrlc ); err != nil {
87
87
feedback .Errorf ("Error during Debug: %v" , err )
88
88
os .Exit (errorcodes .ErrGeneric )
0 commit comments