Split command-line processing into flags.go