bevy-console icon indicating copy to clipboard operation
bevy-console copied to clipboard

ConsoleCommands::take should return a `Result`, not an `Option`

Open alice-i-cecile opened this issue 3 years ago • 0 comments
trafficstars

There are many interesting and meaningfully distinct ways for this to fail. This information should be exposed to the user, using a more idiomatic Result.

enum CommandFailure{
  NotEntered,
  InvalidArgument{argument_number: u8, argument: String},
}

alice-i-cecile avatar Mar 01 '22 17:03 alice-i-cecile