You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner. It is now read-only.
Allow users to specify all of their options in a TOML formatted configuration file instead of having to pass them all as command line arguments every time. For example, consider the following config file, ./config.toml:
A user could run the cli by doing either of the following:
# Option 1: use command line arguments:
python til_converter.py examples/sample.txt --output "./build" --stylesheet "https://cdn.jsdelivr.net/npm/water.css@2/out/water.css"# Option 2: use a config file
python til_converter.py examples/sample.txt -c examples/config.toml
Requirements
The -c or --config flags accept a file path to a TOML-based config file.
If the file is missing, or can't be parsed as TOML, exit with an appropriate error message.
If the -c or --config option is provided, ignore all other options (i.e., a config file overrides other options on the command line).
The program should ignore any options in the config file it doesn't recognize. For example, if the app doesn't support stylesheets, ignore a stylesheet property.
If the config file is missing any options, assume the usual defaults.
The text was updated successfully, but these errors were encountered:
I would like to implement the following feature:
Allow users to specify all of their options in a TOML formatted configuration file instead of having to pass them all as command line arguments every time. For example, consider the following config file,
./config.toml
:A user could run the cli by doing either of the following:
Requirements
-c
or--config
flags accept a file path to a TOML-based config file.-c
or--config
option is provided, ignore all other options (i.e., a config file overrides other options on the command line).stylesheet
property.The text was updated successfully, but these errors were encountered: