fn: sample_function_with_arguments
Purpose
Demonstrate how function arguments are documented.
Behavior
- Accepts one required argument.
- Accepts one optional argument.
- Writes both resolved values to stdout.
Arguments
- $1 Required source value.
- $2 Optional target value. Defaults to stdout.
Output
Writes the resolved source and target values to stdout.
Returns
- 0 Arguments were accepted.
- 2 Required source value was missing.
Usage
sample_function_with_arguments "input" "output"
