Skip to content

Commit

Permalink
Fix args
Browse files Browse the repository at this point in the history
  • Loading branch information
quambene committed Apr 3, 2024
1 parent ff410e7 commit 2b77593
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,15 @@ pub fn app() -> Command {
Arg::new(arg::SUBJECT)
.long(arg::SUBJECT)
.num_args(1)
.required(true)
.required(false)
.required_unless_present(arg::MESSAGE_FILE)
.help("Subject of the email"),
Arg::new(arg::CONTENT)
.long(arg::CONTENT)
.num_args(1)
.required(false)
.requires(arg::SUBJECT)
.required_unless_present_all([
.required_unless_present_any([
arg::MESSAGE_FILE,
arg::TEXT_FILE,
arg::HTML_FILE,
Expand All @@ -175,7 +175,7 @@ pub fn app() -> Command {
.long(arg::MESSAGE_FILE)
.num_args(1)
.required(false)
.required_unless_present_all([
.required_unless_present_any([
arg::SUBJECT,
arg::CONTENT,
arg::TEXT_FILE,
Expand Down

0 comments on commit 2b77593

Please sign in to comment.