From bfc720bf4d8adbb3b1eaff4f3556bc6d1e00849a Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 26 Oct 2021 21:22:41 +0530 Subject: allow stdin input to statix-single --- bin/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/src/config.rs') diff --git a/bin/src/config.rs b/bin/src/config.rs index c856a59..79bed35 100644 --- a/bin/src/config.rs +++ b/bin/src/config.rs @@ -77,8 +77,8 @@ impl Fix { #[derive(Clap, Debug)] pub struct Single { /// File to run single-fix on - #[clap(default_value = ".", parse(from_os_str))] - pub target: PathBuf, + #[clap(parse(from_os_str))] + pub target: Option, /// Position to attempt a fix at #[clap(short, long, parse(try_from_str = parse_line_col))] -- cgit v1.2.3