From bc928bdf2b53deb4479c0ad2920ca18081818480 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Thu, 30 May 2024 19:31:31 +0200 Subject: [PATCH] fixup! Update cli/cli.go --- cli/cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cli.go b/cli/cli.go index 103037ab..1912f549 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -13,7 +13,7 @@ type Format struct { WorkingDirectory kong.ChangeDirFlag `default:"." short:"C" help:"Run as if treefmt was started in the specified working directory instead of the current working directory."` NoCache bool `help:"Ignore the evaluation cache entirely. Useful for CI."` ClearCache bool `short:"c" help:"Reset the evaluation cache. Use in case the cache is not precise enough."` - ConfigFile string `type:"path" help:"Load the config file from the given path (defaults to searching upwards for treefmt.toml)."` + ConfigFile string `type:"existingfile" help:"Load the config file from the given path (defaults to searching upwards for treefmt.toml)."` FailOnChange bool `help:"Exit with error if any changes were made. Useful for CI."` Formatters []string `short:"f" help:"Specify formatters to apply. Defaults to all formatters."` TreeRoot string `type:"existingdir" xor:"tree-root" help:"The root directory from which treefmt will start walking the filesystem (defaults to the directory containing the config file)."`