Usage
Configuration options can viewed by running vhdlfmt --help
vhdlfmt [options] [file/dir/glob...]
-c, --config string path to config file (default "./vhdlfmt.yml")
--debug print debug info
-h, --help show help text
--print-width int target print width (default 120)
-q, --quiet suppress log output
--tab-width int tab width (spaces) (default 4)
-v, --version show version
-w, --write format files in-place
Example
vhdlfmt --write "./src/**/*.vhd"
This will format all .vhd
files within the ./src
folder and all subfolders, updating them in place and outputting log information to stdout.
If vhdlfmt.yml
is present in the working folder, configuration will be read from here first.
Make sure to wrap glob syntax in quotes to ensure consistent expansion on all platforms.