mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +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
|
/// Enables in-development features that may be changed or removed at any
|
||||||
/// time.
|
/// time.
|
||||||
#[arg(long = "feature", value_delimiter = ',')]
|
#[arg(long = "features", value_delimiter = ',', env = "TYPST_FEATURES")]
|
||||||
pub feature: Vec<Feature>,
|
pub features: Vec<Feature>,
|
||||||
|
|
||||||
/// The format to emit diagnostics in.
|
/// The format to emit diagnostics in.
|
||||||
#[clap(long, default_value_t)]
|
#[clap(long, default_value_t)]
|
||||||
|
@ -117,7 +117,7 @@ impl SystemWorld {
|
|||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
let features = process_args
|
let features = process_args
|
||||||
.feature
|
.features
|
||||||
.iter()
|
.iter()
|
||||||
.map(|&feature| match feature {
|
.map(|&feature| match feature {
|
||||||
Feature::Html => typst::Feature::Html,
|
Feature::Html => typst::Feature::Html,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user