Setting upload_protocol and upload_flags from cli

Please have a look at this - I think you could solve your problem in a similar way, i.e. use distinct environments in which you define the different settings needed