You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My original idea was to have a recipe have a num_args field that would specify that the recipe consumes another n arguments, but I think that's fairly tricky to implement and doesn't really leave it open for something that might take arguments sometimes, or might not.
My next thought was to pass in extra arguments in brackets after the recipe name, but that makes it more painful to type because you'll need to quote it all...
$ mold foo
$ mold "foo[--extra --args]"
Another option is to leave an empty place for arguments in the script (see python.mold below), and then parametrize that by using mold environments...
At least for the time being, I'm sticking with parameterization via $MOLDENV instead of allowing arguments to be passed to recipes. A core concept that unintentionally emerged from Mold's design was the ability to immediately present the user with all of their task choices without forcing them to dig through --help and man pages to find more options. By adding the flexibility to pass extra arguments, the moldfile no longer represents an exhaustive list of tasks.
In situations where users need to run very specialized commands, they will have to step outside of Mold's boundaries and run them manually.
My original idea was to have a recipe have a
num_args
field that would specify that the recipe consumes anothern
arguments, but I think that's fairly tricky to implement and doesn't really leave it open for something that might take arguments sometimes, or might not.My next thought was to pass in extra arguments in brackets after the recipe name, but that makes it more painful to type because you'll need to quote it all...
Another option is to leave an empty place for arguments in the script (see
python.mold
below), and then parametrize that by using mold environments...See also:
The text was updated successfully, but these errors were encountered: