Cli: Use of smartpointer