diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/odinfmt/main.odin | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/odinfmt/main.odin b/tools/odinfmt/main.odin index a912001..a829be6 100644 --- a/tools/odinfmt/main.odin +++ b/tools/odinfmt/main.odin @@ -90,6 +90,9 @@ main :: proc() { path := os.args[len(os.args) - 1] if strings.has_prefix(os.args[len(os.args) - 1], "-") { args_to_parse = os.args[1:] + } + + if len(path) <= 1 { path = "." // if no file was specified, use current directory as the starting path to look for `odinfmt.json` } @@ -186,4 +189,4 @@ main :: proc() { } os.exit(1 if write_failure else 0) -} +}
\ No newline at end of file |