mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
Rename --feature
to --features
and support TYPST_FEATURES
env var (#5523)
This commit is contained in:
parent
60f1d8f9b5
commit
4f3ba7f8ca
@ -315,8 +315,8 @@ pub struct ProcessArgs {
|
||||
|
||||
/// Enables in-development features that may be changed or removed at any
|
||||
/// time.
|
||||
#[arg(long = "feature", value_delimiter = ',')]
|
||||
pub feature: Vec<Feature>,
|
||||
#[arg(long = "features", value_delimiter = ',', env = "TYPST_FEATURES")]
|
||||
pub features: Vec<Feature>,
|
||||
|
||||
/// The format to emit diagnostics in.
|
||||
#[clap(long, default_value_t)]
|
||||
|
@ -117,7 +117,7 @@ impl SystemWorld {
|
||||
.collect();
|
||||
|
||||
let features = process_args
|
||||
.feature
|
||||
.features
|
||||
.iter()
|
||||
.map(|&feature| match feature {
|
||||
Feature::Html => typst::Feature::Html,
|
||||
|
Loading…
x
Reference in New Issue
Block a user