mdformat
mdformat copied to clipboard
Add CLI option to specify config file
Closes #432
- CLI now has option
--toml_fileto specify a path to a.mdformat.tomlfile- file name must be
.mdformat.toml
- file name must be
- Partial path supplied to CLI will resolve with a couple different options
- Defaults to current working directory
- Ex.
--toml_file=.mdformat.toml->/path/to/cwd/.mdformat.toml - Ex.
--toml_file=cool_directory/.mdformat.toml->/path/to/cwd/cool_directory/.mdformat.toml
- Ex.
- Using
~at beginning of argument will using the user's home directory- Ex.
--toml_file=~/.mdformat.toml->/path/to/user/home/.mdformat.toml - Ex.
--toml_file=~/cool_directory/.mdformat.toml->/path/to/user/homt/cool_directory/.mdformat.toml
- Ex.
- Defaults to current working directory