In our application we disallow generated command lines for selection and provide a safe "copy command" icon. As my u see a visual correct command (for a browser view) the resulting select + copy don't include f.e. whitespaces.
It's an command builder where you can drag and drop arguments too - overall user selection don't make sense for this purpose - at least not in our case.