@ CommandArgument public void addroles ( @ OptionArgument ( "username" ) String username , @ OptionArgument ( "roles" ) String roles ) { User user = users . get ( username ) ; if ( user != null ) { user . roles . addAll ( Arrays . asList ( roles . split ( "," ) ) ) ; } else { System . err . println ( String . format ( "User '%s' does not exist" , username ) ) ; } }
Add roles for a user .