diff options
| author | frozolotl <44589151+frozolotl@users.noreply.github.com> | 2024-04-04 17:00:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-04 15:00:02 +0000 |
| commit | ffc9570c643540282d35dfe3075567c1200e4171 (patch) | |
| tree | e9ffdd8d361beb0eefac6cd78c2a5b14b2a80249 /crates/typst-cli/src/args.rs | |
| parent | 8013f69714456043f5334670b6ecec2963309622 (diff) | |
Remove SOURCE_DATE_EPOCH CLI argument (#3859)
Diffstat (limited to 'crates/typst-cli/src/args.rs')
| -rw-r--r-- | crates/typst-cli/src/args.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/typst-cli/src/args.rs b/crates/typst-cli/src/args.rs index 14173a55..689785df 100644 --- a/crates/typst-cli/src/args.rs +++ b/crates/typst-cli/src/args.rs @@ -171,8 +171,13 @@ pub struct SharedArgs { /// The document's creation date formatted as a UNIX timestamp. /// /// For more information, see <https://reproducible-builds.org/specs/source-date-epoch/>. - #[clap(env = "SOURCE_DATE_EPOCH", value_parser = parse_source_date_epoch)] - pub source_date_epoch: Option<DateTime<Utc>>, + #[clap( + long = "creation-timestamp", + env = "SOURCE_DATE_EPOCH", + value_name = "UNIX_TIMESTAMP", + value_parser = parse_source_date_epoch, + )] + pub creation_timestamp: Option<DateTime<Utc>>, /// The format to emit diagnostics in #[clap( |
