Skip to content

Commit

Permalink
fix: rename tree_root config environment variable to TREEFMT_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
a-kenji committed Oct 7, 2023
1 parent 2e129d9 commit cb17d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PathBuf>,

/// Run with the specified config file, which is not required to be in the tree to be formatted.
Expand Down

0 comments on commit cb17d4f

Please sign in to comment.