Function cpython::argparse::parse_args
source · pub fn parse_args(
py: Python<'_>,
fname: Option<&str>,
params: &[ParamDescription<'_>],
args: &PyTuple,
kwargs: Option<&PyDict>,
output: &mut [Option<PyObject>]
) -> PyResult<()>
Expand description
Parse argument list
- fname: Name of the current function
- params: Declared parameters of the function
- args: Positional arguments
- kwargs: Keyword arguments
- output: Output array that receives the arguments.
Must have same length as
params
and must be initialized toNone
.