On my macbook pro running MacOS Mojave 10.14.2, I get the following command line response with Arduino IDE version 1.8.3 installed:
command: /Applications/Arduino.app/Contents/MacOS/Arduino --verbose --version
response: Error: unknown option: --version
--version should be available according to the man page:
// Generate a manpage with: a2x -f manpage manpage.adoc
// or HTML with: a2x -f xhtml manpage.adoc
//
// This file uses {empty}:: in some places, to allow putting multiple
// paragraphs inside a single label list item. This is a bit ugly and
// non-semantic, but it seems this is the best way to do this. Asciidoc
// also supports putting a plus sign on a line by itself to join two
// paragraphs into a single list item. However, the indentation on the
// second paragraph makes that formatted with a fixed-size font.
// Removing the indentation completely makes the asciidoc source very
// unreadable. Also, for the --board option, there is a a paragraph,
// followed by a list, followed by another paragraph. The + approach can
// only put the latter paragraph into the inner list, not the outer
// one...
ARDUINO(1)
==========
:doctype: manpage
NAME
This file has been truncated. show original
However, I'm able to successfully compile my sketch:
command: /Applications/Arduino.app/Contents/MacOS/Arduino --verbose --verify <pathtosketch.ino>
I'm writing a script for an uninitiated user to upload a sketch over USB, without me being present. The user has a laptop that has successfully uploaded sketches before; it has python 2.7 installed; but I'm otherwise not sure of its configuration. The --version response will be the first item in the script's log file.
P.S. I was a little surprised that the --verbose --verify output did not include the IDE version.
pert
January 20, 2019, 7:08pm
2
You're using an outdated version of the Arduino IDE. --version wasn't added until Arduino IDE 1.8.6.
The documentation you're referring to is for the IDE at the latest state of development (e.g. Arduino IDE Hourly Build ). If you want documentation specific to your old IDE version, you must view the repository at that tag:
// Generate a manpage with: a2x -f manpage manpage.adoc
// or HTML with: a2x -f xhtml manpage.adoc
//
// This file uses {empty}:: in some places, to allow putting multiple
// paragraphs inside a single label list item. This is a bit ugly and
// non-semantic, but it seems this is the best way to do this. Asciidoc
// also supports putting a plus sign on a line by itself to join two
// paragraphs into a single list item. However, the indentation on the
// second paragraph makes that formatted with a fixed-size font.
// Removing the indentation completely makes the asciidoc source very
// unreadable. Also, for the --board option, there is a a paragraph,
// followed by a list, followed by another paragraph. The + approach can
// only put the latter paragraph into the inner list, not the outer
// one...
ARDUINO(1)
==========
:doctype: manpage
NAME
This file has been truncated. show original
Thanks, That explains it.
pert
January 21, 2019, 5:24pm
4
You're welcome. I'm glad if I was able to be of assistance. Enjoy!
Per