mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
Error when passing --verbose without --verify or --upload
Since the handling of these options defaults to non-verbose (instead of the current preference), they make no sense when starting the IDE normally. Previously, these options would just be ignored in this case, now an error is shown.
This commit is contained in:
parent
d3e2208c01
commit
e0c599d733
@ -401,6 +401,9 @@ public class Base {
|
||||
if ((action == ACTION.UPLOAD || action == ACTION.VERIFY) && filenames.size() != 1)
|
||||
showError(null, _("Must specify exactly one sketch file"), 3);
|
||||
|
||||
if ((action != ACTION.UPLOAD && action != ACTION.VERIFY) && (doVerboseBuild || doVerboseUpload))
|
||||
showError(null, _("--verbose, --verbose-upload and --verbose-build can only be used together with --verify or --upload"), 3);
|
||||
|
||||
for (String path: filenames) {
|
||||
// Fix a problem with systems that use a non-ASCII languages. Paths are
|
||||
// being passed in with 8.3 syntax, which makes the sketch loader code
|
||||
|
@ -95,16 +95,28 @@ OPTIONS
|
||||
verbose mode during build is disabled regardless of the current
|
||||
preferences.
|
||||
|
||||
{empty}::
|
||||
This option is only valid together with *--verify* or
|
||||
*--upload*.
|
||||
|
||||
*--verbose-upload*::
|
||||
Enable verbose mode during upload. If this option is not given,
|
||||
verbose mode during upload is disabled regardless of the current
|
||||
preferences.
|
||||
|
||||
{empty}::
|
||||
This option is only valid together with *--verify* or
|
||||
*--upload*.
|
||||
|
||||
*-v, --verbose*::
|
||||
Enable verbose mode during build and upload.
|
||||
This option has the same effect of using both *--verbose-build*
|
||||
and *--verbose-upload*.
|
||||
|
||||
{empty}::
|
||||
This option is only valid together with *--verify* or
|
||||
*--upload*.
|
||||
|
||||
*--preferences-file* __filename__::
|
||||
Read and store preferences from the specified __filename__ instead
|
||||
of the default one.
|
||||
|
Loading…
x
Reference in New Issue
Block a user