connecting functionality to command-line options