Collecting command-line arguments in CLI