bevy-console
bevy-console copied to clipboard
ConsoleCommands::take should return a `Result`, not an `Option`
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},
}