1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

Added command line option --verbose-build and --verbose-upload

This commit is contained in:
Cristian Maglie 2014-02-06 13:34:33 +01:00
parent 1fe82d847c
commit d60f1df996
2 changed files with 27 additions and 8 deletions

View File

@ -320,7 +320,8 @@ public class Base {
boolean doUpload = false; boolean doUpload = false;
boolean doVerify = false; boolean doVerify = false;
boolean doVerbose = false; boolean doVerboseBuild = false;
boolean doVerboseUpload = false;;
String selectBoard = null; String selectBoard = null;
String selectPort = null; String selectPort = null;
String currentDirectory = System.getProperty("user.dir"); String currentDirectory = System.getProperty("user.dir");
@ -337,7 +338,16 @@ public class Base {
continue; continue;
} }
if (args[i].equals("--verbose") || args[i].equals("-v")) { if (args[i].equals("--verbose") || args[i].equals("-v")) {
doVerbose = true; doVerboseBuild = true;
doVerboseUpload = true;
continue;
}
if (args[i].equals("--verbose-build")) {
doVerboseBuild = true;
continue;
}
if (args[i].equals("--verbose-upload")) {
doVerboseUpload = true;
continue; continue;
} }
if (args[i].equals("--board")) { if (args[i].equals("--board")) {
@ -414,8 +424,8 @@ public class Base {
if (doUpload || doVerify) { if (doUpload || doVerify) {
// Set verbosity for command line build // Set verbosity for command line build
Preferences.set("build.verbose", "" + doVerbose); Preferences.set("build.verbose", "" + doVerboseBuild);
Preferences.set("upload.verbose", "" + doVerbose); Preferences.set("upload.verbose", "" + doVerboseUpload);
Editor editor = editors.get(0); Editor editor = editors.get(0);

View File

@ -86,11 +86,20 @@ OPTIONS
If this option is not passed, the value from the current If this option is not passed, the value from the current
preferences is used (e.g., the last port selected in the IDE). preferences is used (e.g., the last port selected in the IDE).
*-v, --verbose*:: *--verbose-build*::
Enable verbose mode during build. If this option is not given,
verbose mode during build is disabled regardless of the current
preferences.
Enable verbose mode during build and upload. If this option is *--verbose-upload*::
not given, verbose mode is disabled regardless of the current Enable verbose mode during upload. If this option is not given,
preferences. verbose mode during upload is disabled regardless of the current
preferences.
*-v, --verbose*::
Enable verbose mode during build and upload.
This option has the same effect of using both *--verbose-build*
and *--verbose-upload*.
*--preferences-file* __filename__:: *--preferences-file* __filename__::
Read and store preferences from the specified __filename__ instead Read and store preferences from the specified __filename__ instead