Hi, is it possible to extend the `common_run_optio...
# ask-metaflow
b
Hi, is it possible to extend the
common_run_options
in the CLI module to enforce a new required parameter for every flow without forking the repository?
1
v
just to clarify, you want to insert a certain
Parameter
in every flow on the fly?
b
yes and we have an extension package that is installed into user environments
v
here's one approach. Just add
ExtraParam
in addition to
FlowSpec
in the class specification. This inserts a required extra Parameter in the flow.
you could hide
ExtraParam
in a utility module of your own, so users don't have to see it
🔥 1
b
yes, thank you! this is a great idea, testing it now
👍 1
it works great! thanks 🤗
🙌 1