Skip to main content

from_cli

Function from_cli 

Source
pub fn from_cli(v: Vec<String>) -> Option<Vec<String>>
Expand description

Treat an empty vector from clap as “flag not given”.

A consequence worth knowing: there is no way to clear a list from the command line. tak.toml can hold deny = [], and an environment variable can be set to the empty string, because for those two the presence of the key is itself the signal.