Skip to main content

strip_wallet_session_args

Function strip_wallet_session_args 

Source
fn strip_wallet_session_args<I>(raw_args: I) -> Result<Vec<OsString>>
where I: IntoIterator<Item = OsString>,
Expand description

Removes forge script --session wrapper flags from the command passed to --for.

Arguments after -- and non-UTF-8 values are preserved verbatim because they belong to the script invocation, not to the wrapper’s option parser.