basho/riak_core — pull request #527 by macintux (2014-02-06 22:28:29+00:00)
Title: Support role= as alternative to roles= for alter-user

Previously, if an admin created or updated a user to have new roles but mistyped `role=` instead of `roles=` the command would succeed but the list of roles would be stashed into extra options, not actually useful for security.

This creates an effective alias for `role=`.

Stole @Vagabond's much smarter approach than my original attempt.