pub async fn main() -> Result<()>
Main function to parse arguments and handle the command
Returns an error when command handling fails.