Skip to main content

expand_java_args

Function expand_java_args 

Source
pub fn expand_java_args(raw: &str) -> Vec<String>
Expand description

Shell-expand raw (expanding env vars and ~), then split into individual arguments (respecting quotes). Returns an empty vec if raw is empty.

§Examples

use inline_java_core::expand_java_args;

let args = expand_java_args("-verbose:class -Xmx512m");
assert_eq!(args, vec!["-verbose:class", "-Xmx512m"]);

let empty = expand_java_args("");
assert!(empty.is_empty());