unscripted
unscripted copied to clipboard
Environment var parameters
script(
{@Environmental()
int serverPort,
})
Instead of server-port (as with cli options), this would imply a SERVER_PORT environment variable.
What is the environment variable doesn't exist ?
Should it support cli options which fall back to environment variables:
script(
{@Option()
@Environmental()
int serverPort,
})
Generate help block for environment variables when they exist?
I think it would be more useful to specify one environment variable which can contain several arguments and which are then parsed as if they were passed on the command line, like for example the dart executable supports it:
DART_VM_OPTIONS=--old_gen_heap_size=2048