ConsoleCommands::take should return a `Result`, not an `Option`
alice-i-cecile opened this issue · 0 comments
alice-i-cecile commented
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},
}