Handle bug that happens when a player leaves the game in an early stage

This commit is contained in:
2022-10-16 18:25:59 +02:00
parent 04ee20dac2
commit 70d70c2851
5 changed files with 21 additions and 3 deletions

View File

@ -132,6 +132,7 @@ async fn run_app<B: Backend>(terminal: &mut Terminal<B>) -> Res {
#[tokio::main]
pub async fn main() -> Result<(), Box<dyn Error>> {
env_logger::Builder::from_env(Env::default()).init();
cli_args(); // Avoid a crash if help argument is triggered
// setup terminal
enable_raw_mode()?;