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

Implement general YAML to command line option functionality #8

Open
fungs opened this issue Jul 17, 2015 · 5 comments
Open

Implement general YAML to command line option functionality #8

fungs opened this issue Jul 17, 2015 · 5 comments

Comments

@fungs
Copy link
Member

fungs commented Jul 17, 2015

Hi @michaelbarton,

I propose to write a biobox YAML to argparse object parser which seems to be the new Python standard option parsing module (https://docs.python.org/3/library/argparse.html). docopt gives a nice start but IMO for more complex examples going from the object to the help message is better than the other way around.

@michaelbarton
Copy link
Contributor

for more complex examples going from the object to the help message is better than the other way around.

Could you give an example?

@fungs
Copy link
Member Author

fungs commented Jul 17, 2015

To convert YAML to command line arguments, you don't want to do YAML -> help message -> options but YAML -> options -> help message because the help message is usally the least structured kind of data.

@michaelbarton
Copy link
Contributor

From what we discussed, I believed the biobox.yaml will be generated by the command line tool from a simplified set of arguments. If the user would like to generate a more complex biobox.yaml file, there will be the option to accept this and transform the paths.

@fungs
Copy link
Member Author

fungs commented Jul 17, 2015

Well, I thought that the YAML file would be filled with values by the command line tool. So the acual structure or definition could be passed either empty or with default values and the tool could transform it into a set of command line parameters to fill in the fields. Of course, these YAML files could also sit behind the scenes not being visible to the user. This would save us the effort to implement each and every individual specification in the wrapper script.

@michaelbarton
Copy link
Contributor

michaelbarton commented Jul 28, 2015 via email

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

No branches or pull requests

2 participants