Skip to main content

strip_with_spec

Function strip_with_spec 

Source
pub fn strip_with_spec(spec: &WrapperSpec, words: &[Word]) -> Vec<Word>
Expand description

Strip a wrapper command using its spec and return the remaining arguments.

Correctly handles value-consuming flags, env assignments, and -- terminators as specified by the WrapperSpec.