Skip to content

Commit

Permalink
Allow change notes to be passed via CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmwagar committed Jul 26, 2021
1 parent 7e879cb commit 6ebf8f3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ pub struct ReleaseSettings {
no_change_log: bool,

/// Path to changelog file
#[structopt(short, parse(from_os_str))]
#[structopt(short = "f", parse(from_os_str))]
change_log_file: Option<PathBuf>,

#[structopt(short = "c", long = "changelog")]
change_notes: Option<String>
}

/// LAAT Compiler
Expand Down Expand Up @@ -432,7 +435,7 @@ impl LaatCompiler {

contents
} else {
String::new()
release.change_notes.unwrap_or_default()
};

// 2. Strip " from changelog
Expand Down

0 comments on commit 6ebf8f3

Please sign in to comment.