1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-02 13:24:12 +01:00
Arduino/app/test/processing/app
Yohsuke FURUTA 24029c5ace CLI: Add --version to CLI option (#7549)
* CLI: Add --version to CLI option

I added to get the Arduino IDE version from the command line
It will allow to check easily if the new Arduino is already installed.

This feature makes it easier to build external systems linked to specific versions of Arduino.

1. I added `--version` action, which shows version name and exit
  1. Currently, VERSION_NAME_LONG (like `1.8.5`, `1.9.0-beta`, `1.8.6 Hourly Build XXX`, etc...) is used. Because I want to know its version number and stable/beta/hourly.
  2. Finish with `0`. Because it is `SUCCESSFLLY FINISHED`.
2. Updated man page.

* Split "parse" and "action".
Move print action to probably suitable place.

This commit will fix the behavior of multiple actions about --version.

* add testcase
2018-05-22 17:46:11 +02:00
..
debug Fixed unit-test UploaderFactoryTest 2015-12-21 15:19:22 +01:00
helpers Extending remote upload. Sketch merge with bootloader is done by the IDE (using "noblink" bootloader if board definition provides one). If platform provides a "remote" upload tool, that tool is used, otherwise falls back to hardcoded "run-avrdude" 2015-06-18 15:43:10 +02:00
linux Added missing license header to tests 2015-04-30 11:26:15 +02:00
macosx "static" makes sense for constants and few other things. Avoid it if you don't have a specific reason for using it. 2015-10-26 15:49:31 +01:00
syntax Removed unused imports 2015-10-20 18:29:40 +02:00
tools tests: added some missing null checks 2017-10-20 13:17:09 +02:00
windows Windows: Use Shell32 utility to determine known paths 2016-10-19 16:28:21 +02:00
AbstractGUITest.java Build path is now a function of sketch path. This allows to recycle previously 2015-09-18 10:47:23 +02:00
AbstractWithPreferencesTest.java Build path is now a function of sketch path. This allows to recycle previously 2015-09-18 10:47:23 +02:00
AutoformatProducesOneUndoActionTest.java Removed unused imports 2015-10-20 18:29:40 +02:00
AutoformatSavesCaretPositionTest.java Avoid referring directly to RSyntaxTextArea, at least in the names 2015-05-12 16:20:54 +02:00
AutoformatTest.java Avoid referring directly to RSyntaxTextArea, at least in the names 2015-05-12 16:20:54 +02:00
BlockCommentGeneratesOneUndoActionTest.java Fixed regression tests on Indent/Unindent and Comment/Uncomment actions 2017-03-01 10:38:09 +01:00
CommandLineTest.java CLI: Add --version to CLI option (#7549) 2018-05-22 17:46:11 +02:00
DefaultTargetTest.java Preparing the ground for rewriting Preferences GUI code (and hopefully fixing the tiny-pref-window bug on macosx) 2015-05-05 10:02:12 +02:00
HittingEscapeOnCloseConfirmationDialogTest.java New console: replaces previous EditorConsoleStream with one that's faster and doesn't discard end chars. 2015-06-29 16:18:40 +02:00
ReduceIndentWith1CharOnLastLineTest.java New console: replaces previous EditorConsoleStream with one that's faster and doesn't discard end chars. 2015-06-29 16:18:40 +02:00
ReplacingTextGeneratesTwoUndoActionsTest.java Avoid referring directly to RSyntaxTextArea, at least in the names 2015-05-12 16:20:54 +02:00
TestHelper.java Added missing license header to tests 2015-04-30 11:26:15 +02:00