3737 verbose bool
3838 verify bool
3939 interpreter string
40- importFile string
40+ importDir string
4141)
4242
4343// NewCommand created a new `upload` command
@@ -54,7 +54,7 @@ func NewCommand() *cobra.Command {
5454 debugCommand .Flags ().StringVarP (& fqbn , "fqbn" , "b" , "" , "Fully Qualified Board Name, e.g.: arduino:avr:uno" )
5555 debugCommand .Flags ().StringVarP (& port , "port" , "p" , "" , "Debug port, e.g.: COM10 or /dev/ttyACM0" )
5656 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." )
5858
5959 return debugCommand
6060}
@@ -82,7 +82,7 @@ func run(command *cobra.Command, args []string) {
8282 SketchPath : sketchPath .String (),
8383 Port : port ,
8484 Interpreter : interpreter ,
85- ImportFile : importFile ,
85+ ImportDir : importDir ,
8686 }, os .Stdin , os .Stdout , ctrlc ); err != nil {
8787 feedback .Errorf ("Error during Debug: %v" , err )
8888 os .Exit (errorcodes .ErrGeneric )
0 commit comments