verified that it's working properly by need to re-testing the various options with real data and a real SPI device. Made a correction to previous revision, now good after adding '-C' option (it affects a lot).
still need to verify that all error conditions are handled correctly (including parameter errors). With some new error checks for command line parameters, each should generate an appropriate error message.