summaryrefslogtreecommitdiff
path: root/cli/tools/fmt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/fmt.rs')
-rw-r--r--cli/tools/fmt.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs
index 2cc276c5b..d70c95d29 100644
--- a/cli/tools/fmt.rs
+++ b/cli/tools/fmt.rs
@@ -73,6 +73,10 @@ pub async fn format(
}
}
+ if include_files.is_empty() {
+ include_files = [std::env::current_dir()?].to_vec();
+ }
+
// Now do the same for options
let fmt_options = resolve_fmt_options(
&fmt_flags,