-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix inconsistency in commands on/off and status. #33
Comments
I agree there's some inconsistency but I think it's for a good cause. For status I think it's more likely that one wants to get the status of all the outlets in a switch instead of an outlet. For on/off one always wants to address an outlet (I think it's very unlikely one will want to turn on/off an entire switch. In my opinion this inconsistency is ok, but if we wanted to consolidate I would vote for keeping |
Still, its confusing. In the original implementation from one year ago, there was no -s and -o at all.
All switch names and all port names of all switches should be unique, lvmnps took care internally if a switch (optional with port number) or a named port was addressed. I my opinion the normal usage with on/off/status should be via unique port names, maybe multiple port names as parameters would be even better. If a switch (and optional with a port number) has to be addressed then an option -s should be used or just revert the interface as it was. |
Sorry for the delay replying; traveling and commissioning have kept me from LVM stuff. I don't have a problem if you want to change the behaviour. At the end of the day most of the access will either be through other actors or via a GUI, so either solution works for me. Not sure the current implementation is that different, though. With the exception of allowing non-unique outlet names (which I'm fine not allowing), I think the current behaviour is similar? Allowing to turn on/off multiple outlets at the same time also sounds useful. |
The commands on/off are inconsistent, for on/off its:
and for status its:
eg:
lvmnps on skyw.pwi
and for status its:
lvmnps status -o skyw.pwi
The text was updated successfully, but these errors were encountered: