Options - new option syntax

parameters:
--port PORT - port of Logic Sniffer, needs to be specified. Same as -p Port
--speed SPEED - sets speed of the serial port. Same as -s Speed
--wH FILE - HEX file to be uploaded to OLS
--wB FILE - BIN file to be uploaded to OLS
--rH FILE - HEX file to be downloaded from OLS
--rB FILE - BIN file to be downloaded from OLS
--l X or -l X - send only first X paged
commands:
--erase - erases Flash, also same as using -e
--write - writes data to Flash, as -w
--read - reads data from Flash, same as -r
--ignore_jedec - ignore jedec id, same as -i
--run - enter run mode after finished, same as -r
--status - get OLS status, same as -s
--boot - enter bootloader mode - ignore other commands, same as -b
--selftest - run self-test - ignore other commands

When no command specified, program will check FW version, and Flash ID

Usage examples

Query OLS for current versions and flash identity

ols-loader -p:/dev/ttyACM0 -status

ols-loader --port /dev/ttyACM0 --status

Save current flash to a file

ols-loader -p:/dev/ttyACM0 -rH:current-flash.hex -read

ols-loader --port /dev/ttyACM0 --rH current-flash.hex --read

Notes on command parameters

The new syntax version supports the standard long and short option commandline parameters:
the short option uses a single dash ('-') followed by a single character parameter, e.g -p
while a long option uses double dash ('--') followed by single word or string e.g. --port
the parameters 'wH', 'wR' uses only the long option parameter e.g. --wH filename