Skip to content

feat: add --config flag for custom config file path#124

Merged
thomaseizinger merged 2 commits intoDevinR528:mainfrom
aaronmallen:aa/add-config-flag
Feb 13, 2026
Merged

feat: add --config flag for custom config file path#124
thomaseizinger merged 2 commits intoDevinR528:mainfrom
aaronmallen:aa/add-config-flag

Conversation

@aaronmallen
Copy link
Copy Markdown
Contributor

@aaronmallen aaronmallen commented Feb 4, 2026

Add a --config CLI flag that allows specifying a custom path to the tomlfmt.toml configuration file. This enables projects to organize their config files in dedicated directories (e.g., .config/).

When --config is provided, the specified path is used directly and an error is returned if the file doesn't exist. When not provided, the existing discovery logic is used (tomlfmt.toml, then .tomlfmt.toml, then defaults).

Resolves: #123

Add a --config CLI flag that allows specifying a custom path to the
tomlfmt.toml configuration file. This enables projects to organize
their config files in dedicated directories (e.g., .config/).

When --config is provided, the specified path is used directly and an
error is returned if the file doesn't exist. When not provided, the
existing discovery logic is used (tomlfmt.toml, then .tomlfmt.toml,
then defaults).

resolves DevinR528#123
Copy link
Copy Markdown
Collaborator

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Comment thread README.md Outdated
@thomaseizinger thomaseizinger changed the title Add --config flag for custom config file path feat: add --config flag for custom config file path Feb 13, 2026
@thomaseizinger thomaseizinger merged commit c29a297 into DevinR528:main Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support custom config path for tomlfmt.toml

2 participants