Extracted parser function for each subcommand