it's unusual to pass command line flags in. better to parse in main and pass in the fields necessary.