Cli: factorize loading

why do you use a pointer here ?