I added command-line parsing features into settings.cpp, using the getopts library