openmicroscopy/openmicroscopy — pull request #498 by sbesson (2012-11-23 10:14:43+00:00)
Title: CLI user/group improvements

Same as #452 rebased onto `origin/dev_4_4`

Summary of changes
- fixed `login`, `logout` shortcut commands
```
bin/omero login ...
bin/omero sessions login ...
bin/omero logout ...
bin/omero sessions logout ...
```

- add group membership/ownership subcommands to `user` & `group` plugins
```
bin/omero group adduser -h
bin/omero group removeuser -h
bin/omero group copyusers -h
bin/omero user joingroup -h
bin/omero user leavegroup -h
```

- expose login arguments across many plugins/subcommands.
```
bin/omero -h
bin/omero -s howe.openmicroscopy.org.uk -C user list
bin/omero user -h
bin/omero user -s howe.openmicroscopy.org.uk -C list
bin/omero user list -h
bin/omero user list -s howe.openmicroscopy.org.uk -C
```

- start unifying user/group error code and messages in generic `error_*` methods