Skip to main content

options_from_env

Function options_from_env 

Source
pub fn options_from_env(value: &str) -> Vec<(String, String)>
Expand description

Parse the AMPL pounce_options environment variable into (key, value) option pairs.

AMPL passes solver directives through a <solver>_options env var (here pounce_options): a whitespace-separated list of key=value tokens — the same key=value grammar pounce accepts as positional CLI options. Tokens without an = (AMPL’s rarer keyword value spelling) are skipped rather than guessed at, matching the CLI parser, which has no key value form either. The caller applies these before the command-line key=value options so an explicit CLI flag wins.