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

Parse yaml directories as key=value pairs #258

Open
SilasK opened this issue Nov 24, 2021 · 2 comments · May be fixed by #273
Open

Parse yaml directories as key=value pairs #258

SilasK opened this issue Nov 24, 2021 · 2 comments · May be fixed by #273

Comments

@SilasK
Copy link

SilasK commented Nov 24, 2021

Hellow I work on snakemake/snakemake#1186

I would like that the YAMLConfigFileParser would parse yaml directories to key-value pairs.

config.yaml

default_resources:
  mem_mb: 10
  time:300

would be parsed to:
--default_resources mem_mb=10 time=300

Do you think this is a reasonable feature request?

@bw2
Copy link
Owner

bw2 commented Jan 26, 2022

I think complicated values like this with compound / non-primitive types are too complex for the main configargparse repo. You're welcome to create a subclass or fork of configargparse for these more specialized use cases.

@SilasK
Copy link
Author

SilasK commented Feb 6, 2022

Could you show me where in the code I would need to check if the input is a dict.

katharinahafner added a commit to katharinahafner/ConfigArgParse that referenced this issue Jun 7, 2022
@katharinahafner katharinahafner linked a pull request Jun 7, 2022 that will close this issue
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 a pull request may close this issue.

2 participants