-
Notifications
You must be signed in to change notification settings - Fork 59
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
Combining requires
and output_file_template
for a field
#619
Comments
@ghisvail - i don't see |
My bad, optional -> enable_bar
Le jeu. 9 févr. 2023, 20:48, Satrajit Ghosh ***@***.***> a
écrit :
… @ghisvail <https://github.com/ghisvail> - i don't see optional_arg
anywhere. perhaps there should at least be something that checks that
variables in requires are present in the spec.
—
Reply to this email directly, view it on GitHub
<#619 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAO7U32TDBYWC6OZM32WAULWWVCYLANCNFSM6AAAAAAUW37VVE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Indeed 😅, this mistake was not intended but you're right I fixed the code snippet. |
i would say this is likely a order of operations resolution problem in the spec processor. do you have the inclination to send a PR ? |
I can have a look |
I am trying to combine the effects of
requires
andoutput_file_template
but failed so far.Here is my latest attempt:
where I would want
maybe_output_arg
to get a templated default value only if an optional argument is provided.The reasoning behind it is that the underlying executable generates additional files based on whether some optional parameters have been provided.
Assuming this is not feasible,
Cheers,
Ghis
EDIT: Fix typo in code snippet
The text was updated successfully, but these errors were encountered: