Skip to content

Commit

Permalink
Fix required_if arg name in example
Browse files Browse the repository at this point in the history
  • Loading branch information
rgardner authored and CreepySkeleton committed Jul 10, 2020
1 parent b1174e5 commit c7d028a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
//! #[structopt(short)]
//! out_type: String,
//!
//! /// File name: only required when `out` is set to `file`
//! #[structopt(name = "FILE", required_if("out_type", "file"))]
//! /// File name: only required when `out-type` is set to `file`
//! #[structopt(name = "FILE", required_if("out-type", "file"))]
//! file_name: Option<String>,
//! }
//!
Expand Down

0 comments on commit c7d028a

Please sign in to comment.