Skip to content

Commit

Permalink
Show resolved options in verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyMorganz committed Nov 18, 2024
1 parent 746d832 commit 2772198
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Verbose mode will now show resolved options

### Fixed

- Fixed CLI overrides not applying on top of a resolved `stylua.toml` file ([#925](https://github.com/JohnnyMorganz/StyLua/issues/925))
Expand Down
2 changes: 2 additions & 0 deletions src/cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ fn path_is_stylua_ignored(path: &Path, search_parent_directories: bool) -> Resul
}

fn format(opt: opt::Opt) -> Result<i32> {
debug!("resolved options: {:#?}", opt);

if opt.files.is_empty() {
bail!("no files provided");
}
Expand Down

0 comments on commit 2772198

Please sign in to comment.