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

Resolving issue 9: Support for TOML Configuration File with -c and --config Flags #10

Merged
merged 3 commits into from
Oct 11, 2023

Conversation

bhavik001
Copy link
Collaborator

@bhavik001 bhavik001 commented Oct 10, 2023

Hello,

Description:
This enhancement aims to introduce support for TOML configuration files using the -c and --config flags. Users will be able to specify various options in a TOML formatted configuration file, simplifying command line usage and allowing for defaults when necessary. The program should gracefully handle missing or incorrectly formatted files.

Acceptance criteria:

  • 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.

@bhavik001 bhavik001 changed the title Removing the the duplicate line Resolving issue 9: Support for TOML Configuration File with -c and --config Flags Oct 10, 2023
@sshah135
Copy link
Owner

Hello, I have checked it and it works fine

@sshah135 sshah135 merged commit 57d5c47 into main Oct 11, 2023
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.

None yet

2 participants