Move all action handling to main

parse_options() only parses the program input and all detected actions are
handled in main().