46
46
uploadAfterCompile bool // Upload the binary after the compilation.
47
47
port string // Upload port, e.g.: COM10 or /dev/ttyACM0.
48
48
verify bool // Upload, verify uploaded binary after the upload.
49
- exportFile string // The compiled binary is written to this file
49
+ exportDir string // The compiled binary is written to this file
50
50
dryRun bool // Use this flag to now write the output file
51
51
libraries []string // List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
52
52
optimizeForDebug bool // Optimize compile output for debug, not for release
@@ -67,7 +67,7 @@ func NewCommand() *cobra.Command {
67
67
command .Flags ().BoolVar (& showProperties , "show-properties" , false , "Show all build properties used instead of compiling." )
68
68
command .Flags ().BoolVar (& preprocess , "preprocess" , false , "Print preprocessed code to stdout instead of compiling." )
69
69
command .Flags ().StringVar (& buildCachePath , "build-cache-path" , "" , "Builds of 'core.a' are saved into this path to be cached and reused." )
70
- command .Flags ().StringVarP (& exportFile , "output" , "o " , "" , "Filename of the compile output ." )
70
+ command .Flags ().StringVarP (& exportDir , "output-dir " , "" , "" , "Save build artifacts in this directory ." )
71
71
command .Flags ().BoolVarP (& dryRun , "dry-run" , "n" , false , "Perform the build but do not copy the compile output file." )
72
72
command .Flags ().StringVar (& buildPath , "build-path" , "" ,
73
73
"Path where to save compiled files. If omitted, a directory will be created in the default temporary path of your OS." )
@@ -115,7 +115,7 @@ func run(cmd *cobra.Command, args []string) {
115
115
Verbose : verbose ,
116
116
Quiet : quiet ,
117
117
VidPid : vidPid ,
118
- ExportFile : exportFile ,
118
+ ExportDir : exportDir ,
119
119
DryRun : dryRun ,
120
120
Libraries : libraries ,
121
121
OptimizeForDebug : optimizeForDebug ,
@@ -134,7 +134,7 @@ func run(cmd *cobra.Command, args []string) {
134
134
Port : port ,
135
135
Verbose : verbose ,
136
136
Verify : verify ,
137
- ImportFile : exportFile ,
137
+ ImportDir : exportDir ,
138
138
}, os .Stdout , os .Stderr )
139
139
140
140
if err != nil {
0 commit comments