You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compileFlag=flag.Bool(FLAG_COMPILE, false, "compiles the given sketch")
120
-
dumpPrefsFlag=flag.Bool(FLAG_DUMP_PREFS, false, "dumps build properties used when compiling")
123
+
compileFlag=flag.Bool(FLAG_ACTION_COMPILE, false, "compiles the given sketch")
124
+
preprocessFlag=flag.Bool(FLAG_ACTION_PREPROCESS, false, "preprocess the given sketch")
125
+
dumpPrefsFlag=flag.Bool(FLAG_ACTION_DUMP_PREFS, false, "dumps build properties used when compiling")
121
126
buildOptionsFileFlag=flag.String(FLAG_BUILD_OPTIONS_FILE, "", "Instead of specifying --"+FLAG_HARDWARE+", --"+FLAG_TOOLS+" etc every time, you can load all such options from a file")
122
127
flag.Var(&hardwareFoldersFlag, FLAG_HARDWARE, "Specify a 'hardware' folder. Can be added multiple times for specifying multiple 'hardware' folders")
123
128
flag.Var(&toolsFoldersFlag, FLAG_TOOLS, "Specify a 'tools' folder. Can be added multiple times for specifying multiple 'tools' folders")
@@ -128,6 +133,7 @@ func init() {
128
133
ideVersionFlag=flag.String(FLAG_IDE_VERSION, "10600", "fake IDE version")
verboseFlag=flag.Bool(FLAG_VERBOSE, false, "if 'true' prints lots of stuff")
136
+
quiteFlag=flag.Bool(FLAG_QUITE, false, "if 'true' doesn't print any warnings or progress or whatever")
131
137
debugLevelFlag=flag.Int(FLAG_DEBUG_LEVEL, builder.DEFAULT_DEBUG_LEVEL, "Turns on debugging messages. The higher, the chattier")
132
138
warningsLevelFlag=flag.String(FLAG_WARNINGS, "", "Sets warnings level. Available values are '"+FLAG_WARNINGS_NONE+"', '"+FLAG_WARNINGS_DEFAULT+"', '"+FLAG_WARNINGS_MORE+"' and '"+FLAG_WARNINGS_ALL+"'")
133
139
loggerFlag=flag.String(FLAG_LOGGER, FLAG_LOGGER_HUMAN, "Sets type of logger. Available values are '"+FLAG_LOGGER_HUMAN+"', '"+FLAG_LOGGER_MACHINE+"'")
@@ -149,19 +155,6 @@ func main() {
149
155
return
150
156
}
151
157
152
-
compile:=*compileFlag
153
-
dumpPrefs:=*dumpPrefsFlag
154
-
155
-
ifcompile&&dumpPrefs {
156
-
fmt.Fprintln(os.Stderr, "You can either specify --"+FLAG_COMPILE+" or --"+FLAG_DUMP_PREFS+", not both")
157
-
deferos.Exit(1)
158
-
return
159
-
}
160
-
161
-
if!compile&&!dumpPrefs {
162
-
compile=true
163
-
}
164
-
165
158
context:=make(map[string]interface{})
166
159
167
160
buildOptions:=make(map[string]string)
@@ -265,13 +258,6 @@ func main() {
265
258
context[constants.CTX_VIDPID] =*vidPidFlag
266
259
}
267
260
268
-
ifcompile&&flag.NArg() ==0 {
269
-
fmt.Fprintln(os.Stderr, "Last parameter must be the sketch to compile")
0 commit comments