1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-10 21:24:12 +01:00
Arduino/app/test
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
..
cc/arduino Fixed UpdatableLibrarieyTest 2018-05-21 12:04:01 +02:00
processing/app CLI: Add --version to CLI option (#7549) 2018-05-22 17:46:11 +02:00
Keypad_mac.zip keep included folder name as top level folder name, delete MAC folder and hidden files 2012-10-18 16:00:02 +02:00
Keypad_with_hidden_files.zip keep included folder name as top level folder name, delete MAC folder and hidden files 2012-10-18 16:00:02 +02:00
optiboot_atmega328.hex 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
sketch.hex 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
Test2.zip Add library from ZIP 2012-10-17 15:25:29 +02:00
Test.zip Add library from ZIP 2012-10-17 15:25:29 +02:00