Skip to content

Commit 84f0d78

Browse files
committed
feat(cli): Catch missing required arguments at parse time
1 parent fea5b42 commit 84f0d78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub struct Cli {
8585
/// An extension will be chosen based on the output backend, typically .pdf.
8686
/// With this option any arbitrary name and path can be given.
8787
/// Additionally `-` can be used to write the output to STDOUT.
88-
#[clap(short, long, value_name = "FILE")]
88+
#[clap(short, long, value_name = "FILE", required_if_eq("input", "-"))]
8989
pub output: Option<PathBuf>,
9090

9191
/// Set or override document class options.

0 commit comments

Comments
 (0)