Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLI option to specify config file #516

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

olssonks
Copy link

Closes #432

  • CLI now has option --toml_file to specify a path to a .mdformat.toml file
    • file name must be .mdformat.toml
  • 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
    • 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

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.

Option to specify path to configuration file
1 participant