Extract config building into a function
Test command-line options