cli: be lazy

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
Co-authored-by: Jiří Kunčar <jiri.juncar@cern.ch>