Fixed a bug in cli when command line argument not specified