cli: be lazy

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch>