1) Support command-line flag to use custom format config. (Defaults to itch5.yml if unused, so default behavior remains the same).
2) Include NASDAQ Genium2 format config in repo, which can be used with the flag above.
3) Program reads from STDIN if file argument left blank. Makes it easier to use program in Unix pipes. (Default behavior remains the same).
4) Add more descriptive error messages for malformed or missing data.
5) Correct bug, where input.read wasn't checked to see if it read the full msg length.
@Mister-Meeseeks I am just gonna merge it in. I see your code and trust you. I was trying to create something cooler than just a parser but time is the worst enemy. Thanks for all your help.
Collection of various upgrades:
1) Support command-line flag to use custom format config. (Defaults to itch5.yml if unused, so default behavior remains the same). 2) Include NASDAQ Genium2 format config in repo, which can be used with the flag above. 3) Program reads from STDIN if file argument left blank. Makes it easier to use program in Unix pipes. (Default behavior remains the same). 4) Add more descriptive error messages for malformed or missing data. 5) Correct bug, where input.read wasn't checked to see if it read the full msg length.