From cb17d4fe8230b6f92bec54e63b91afd76cd4ff92 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Sat, 7 Oct 2023 14:38:38 +0200 Subject: [PATCH] fix: rename tree_root config environment variable to `TREEFMT_ROOT` --- src/command/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/mod.rs b/src/command/mod.rs index 284c7fb6..e51a143b 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -61,7 +61,7 @@ pub struct Cli { pub work_dir: PathBuf, /// Set the path to the tree root directory. Defaults to the folder holding the treefmt.toml file. - #[arg(long, env = "PRJ_ROOT", default_value = ".", value_parser = parse_path)] + #[arg(long, env = "TREEFMT_ROOT", default_value = ".", value_parser = parse_path)] pub tree_root: Option, /// Run with the specified config file, which is not required to be in the tree to be formatted.