Skip to content

Commit b022463

Browse files
committed
Document SOURCE_DATE_EPOCH support
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
1 parent 2586102 commit b022463

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cargo-cyclonedx/src/cli.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ pub enum Opts {
2424
#[derive(Parser, Debug)]
2525
#[clap(version)]
2626
#[clap(group(ArgGroup::new("dependencies-group").required(false).args(&["all", "top-level"])))]
27+
// TODO: replace with clap's Arg::env in 0.6.x after a semver break
28+
#[command(
29+
after_help = "The SOURCE_DATE_EPOCH env var is honored to enable reproducible builds,\n\
30+
see https://reproducible-builds.org/docs/source-date-epoch/"
31+
)]
2732
pub struct Args {
2833
/// Path to Cargo.toml
2934
#[clap(long = "manifest-path", value_name = "PATH", value_hint = clap::ValueHint::FilePath)]

0 commit comments

Comments
 (0)