Skip to content

Set default arguments in cwltool.factory.Factory #596

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

Closed
ThomasHickman opened this issue Jan 8, 2018 · 1 comment
Closed

Set default arguments in cwltool.factory.Factory #596

ThomasHickman opened this issue Jan 8, 2018 · 1 comment

Comments

@ThomasHickman
Copy link
Member

ThomasHickman commented Jan 8, 2018

In the README, the recommended way to use cwltool as a factory is to use the cwltool.factory.Factory class (https://github.com/common-workflow-language/cwltool#import-as-a-module). However, this doesn't set default command line options - these are normally set in the command line using argparse in main by:

args = arg_parser().parse_args(argsl)
If no default command line options are passed when instantiating the Factory, then this produces lots of unintended effects (e.g. use_container is False)

@anton-khodak
Copy link
Member

anton-khodak commented Jan 28, 2018

Can be merged with #567

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants