Comment 1 for bug 1600523

Revision history for this message
Richard Harding (rharding) wrote :

The issue here is that some commands take arguments afterwards which could be confusing and lead to some inconsistency. status takes an optional argument for the application/unit. juju resources requires the application name, and so the -m is used there to allow a user to say juju resources -m controller:model percona-cluster.

The -c or -m lets us make any command accept that argument regardless of how it works.

It does suck that some commands take the -c because they're controller specific (models, users) but others take the -m because they're intended to be model specific (status, machines, etc) yet take the controller as well. In a way you really just want to be able to --target controller, model, controller:model on any command.

What are your thoughts on keeping the flag so that we can keep things out of trouble with the specifics of the command run, but trying to change up the flag used to be consistent across all commands?