Cli: factorize loading
Cli: Use of smartpointer
Merge pull request #438 from l-vincent-l/cli

Cli: factorize loading