makeSourceCode and makeCmdLineCode merged together.