create the cli obj before calling parseCommand

Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
Merge pull request #4660 from vieux/parsecommand

create the cli obj before calling parseCommand