unscripted icon indicating copy to clipboard operation
unscripted copied to clipboard

Environment var parameters

Open seaneagan opened this issue 12 years ago • 1 comments

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?

seaneagan avatar Jan 27 '14 18:01 seaneagan

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

zoechi avatar May 25 '15 16:05 zoechi