Closed C-Elegans closed 7 years ago
Looks great, thanks for the contribution! Somewhat curious, but could you potentially fix a bug of sorts? It looks like invalid options are not being recognized, e.g.:
albert@debian:~/spasm-ng$ ./spasm -Z
No input file specified
(FYI, this isn't a bug on your side... I just noticed this in spasm-ng master due to me testing out your commit!)
If you want to do this separately from this PR, just let me know and I'll go ahead and merge this in before you do any changes. (Feel free to open an issue as well to track this problem!)
Fixing post merge.
Refactor the help message into its own function Add -h and -H as options to print the help message and exit