From 51ec6ee411838b06edff7da278b34d46d5d6aca5 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 6 May 2021 20:25:29 +0200 Subject: Fix standard input command line argument typo Didn't notice this before, but apparently I wrote a typo for the standard input free argument. It should be a hyphen character instead of an equals sign. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e3e9101..147a7e0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -80,7 +80,7 @@ fn run () -> Result<(), anyhow::Error> { let output_pdf = opt_matches.opt_str("output") .unwrap_or("-".to_owned()); - let mut doc = if input_pdf == "=" { + let mut doc = if input_pdf == "-" { Document::load_from(&mut std::io::stdin()) .context("failed reading from stdin")? } else { -- cgit v1.2.3