openmicroscopy/openmicroscopy — pull request #452 by sbesson (2012-10-31 14:15:23+00:00)
Title: CLI user/group improvements

This PR addresses several feature tickets ([#7247](https://trac.openmicroscopy.org.uk/ome/ticket/7247), [#6933](https://trac.openmicroscopy.org.uk/ome/ticket/6933)) as well as [#2588](https://trac.openmicroscopy.org.uk/ome/ticket/2588).

Typical user/group scenarios can be tested using the new group subcommands `addowner` and `removew=owner`
```
bin/omero group add --type=read-annotate read-annotate-test
bin/omero group addowner -h
bin/omero group addowner gid uid uid2
bin/omero group removeowner -h
bin/omero group removeowner gid uid
bin/omero group remove gid uid2
bin/omero group insert gid uid3
```
or the new user subcommands `addtogroup` and `removefromgroup`

```
bin/omero group add --type=read-annotate read-annotate-test
bin/omero user addtogroup -h
bin/omero user addtogroup uid gid
bin/omero user removefromgroup -h
bin/omero user removefromgroup uid gid
```

Also, fixes a bug with the `login/logout` shortcut. So the output of
```
bin/omero login -h
bin/omero sessions login -h
```
and
```
bin/omero logout -h
bin/omero sessions logout -h
```
and their usage should be identical now.