pub fn parse_args(args: &[String]) -> Result<Command, String>
Parse command-line arguments into a typed command structure.