Skip to main content

with_program_name

Function with_program_name 

Source
pub fn with_program_name<R>(name: &'static str, f: impl FnOnce() -> R) -> R
Expand description

Runs f with the command lines naming themselves <name> <module> in their usage and help texts (see program_text), on this thread. This is how the fontoxide executable runs a module; by default, the texts are fontTools’.