Reduce cycles and checks in the loop collectin info of cmdline.