[Bug]: Can't provide a value to a configurable variable via the CLI when there are other configurable variables for which values cannot be provided via the CLI
MaryamZi opened this issue · comments
Description
$title.
Also, why can't we provide a value for variables of types like int?
via the CLI? Here, we surely can support at least int values, even if we don't support nil?
Steps to Reproduce
import ballerina/io;
configurable int v1 = 1;
configurable int? v2 = ();
public function main() {
io:println(v1);
io:println(v2);
}
$ bal run test.bal -- -Cv1=1
Compiling source
test.bal
Running executable
error: value for configurable variable 'v2' with type 'int?' is not supported as a command line argument
at .:0.0.0(test.bal:4)
Affected Version(s)
2201.9.0
OS, DB, other environment details and versions
No response
Related area
-> Runtime
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response