Added --command option to select the desired command