I think this should be moved to settings.go, right after argument parsing.