Passing Command Line Arguments

Arguments are passed to the flow being executed by flowc by placing them after the flow name in the execution string (either using cargo run -p flowc or flowc directly). e.g. cargo run -p flowc -- flowr/examples/mandlebrot mandel.png 4000x3000 -1.20,0.35 -1,0.20

The context functions include a function called args/get that can be used to read the arguments, allowing them to then be processed in the flow like any other inputs.

Include the args/get function in your flow:

[[process]]
source = "lib://flkowr/args/get"

Then create a connection from the desired output (second arg in this example) of args/get to another function:

[[connection]]
from = "function/get/2"
to = "function/parse_bounds/input"