Skip to content

Commit d60f1df

Browse files
committed
Added command line option --verbose-build and --verbose-upload
1 parent 1fe82d8 commit d60f1df

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

Diff for: app/src/processing/app/Base.java

+14-4
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ public Base(String[] args) throws Exception {
320320

321321
boolean doUpload = false;
322322
boolean doVerify = false;
323-
boolean doVerbose = false;
323+
boolean doVerboseBuild = false;
324+
boolean doVerboseUpload = false;;
324325
String selectBoard = null;
325326
String selectPort = null;
326327
String currentDirectory = System.getProperty("user.dir");
@@ -337,7 +338,16 @@ public Base(String[] args) throws Exception {
337338
continue;
338339
}
339340
if (args[i].equals("--verbose") || args[i].equals("-v")) {
340-
doVerbose = true;
341+
doVerboseBuild = true;
342+
doVerboseUpload = true;
343+
continue;
344+
}
345+
if (args[i].equals("--verbose-build")) {
346+
doVerboseBuild = true;
347+
continue;
348+
}
349+
if (args[i].equals("--verbose-upload")) {
350+
doVerboseUpload = true;
341351
continue;
342352
}
343353
if (args[i].equals("--board")) {
@@ -414,8 +424,8 @@ public Base(String[] args) throws Exception {
414424

415425
if (doUpload || doVerify) {
416426
// Set verbosity for command line build
417-
Preferences.set("build.verbose", "" + doVerbose);
418-
Preferences.set("upload.verbose", "" + doVerbose);
427+
Preferences.set("build.verbose", "" + doVerboseBuild);
428+
Preferences.set("upload.verbose", "" + doVerboseUpload);
419429

420430
Editor editor = editors.get(0);
421431

Diff for: build/shared/manpage.adoc

+13-4
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,20 @@ OPTIONS
8686
If this option is not passed, the value from the current
8787
preferences is used (e.g., the last port selected in the IDE).
8888

89-
*-v, --verbose*::
89+
*--verbose-build*::
90+
Enable verbose mode during build. If this option is not given,
91+
verbose mode during build is disabled regardless of the current
92+
preferences.
93+
94+
*--verbose-upload*::
95+
Enable verbose mode during upload. If this option is not given,
96+
verbose mode during upload is disabled regardless of the current
97+
preferences.
9098

91-
Enable verbose mode during build and upload. If this option is
92-
not given, verbose mode is disabled regardless of the current
93-
preferences.
99+
*-v, --verbose*::
100+
Enable verbose mode during build and upload.
101+
This option has the same effect of using both *--verbose-build*
102+
and *--verbose-upload*.
94103

95104
*--preferences-file* __filename__::
96105
Read and store preferences from the specified __filename__ instead

0 commit comments

Comments
 (0)