print command properly