From cba7a19e7780ea9f84809567bc8e342c8bd536c1 Mon Sep 17 00:00:00 2001 From: William Date: Sun, 1 Oct 2023 17:14:53 +0100 Subject: [PATCH] Require that stdin extraction has an output path --- fastgmad-lib/src/extract/conf.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fastgmad-lib/src/extract/conf.rs b/fastgmad-lib/src/extract/conf.rs index 35fab42..c647f94 100644 --- a/fastgmad-lib/src/extract/conf.rs +++ b/fastgmad-lib/src/extract/conf.rs @@ -84,6 +84,8 @@ impl ExtractGmaConfig { if !dir.exists() || dir.is_dir() { config.out = dir; } + } else { + return Err(PrintHelp(Some("Please provide an output path"))); } }