Skip to main content

NativeFn

Type Alias NativeFn 

Source
pub type NativeFn = fn(args: &[OsString]) -> Result<i32>;
Expand description

Signature every command entry point shares.

args excludes the command name itself, exactly like the sys.argv[1:] a Python main() sees after the dispatcher swaps argv.