@users.command('update')
@click.option('--username', '-u', help='The username of the user.')
@click.option('--email', '-e', type=EmailType(), help='The email address of the user.')
@click.option('--password', '-p', help='The password of the user.')
@click.option('--group', '-g', help='The group of the user.', type=click.Choice(['admin', 'super_mod', 'mod', 'member']))
def change_user(username, password, email, group):
 user = save_user_prompt(username, password, email, group)
 if (user is None):
  raise FlaskBBCLIError('The user with username {} does not exist.'.format(username), fg='red')
 click.secho('[+] User {} updated.'.format(user.username), fg='cyan')

@ users . command ( 'update' ) @ click . option ( '--username' , '-u' , help = 'The username of the user.' ) @ click . option ( '--email' , '-e' , type = EmailType ( ) , help = 'The email address of the user.' ) @ click . option ( '--password' , '-p' , help = 'The password of the user.' ) @ click . option ( '--group' , '-g' , help = 'The group of the user.' , type = click . Choice ( [ 'admin' , 'super_mod' , 'mod' , 'member' ] ) ) def change_user ( username , password , email , group ) : user = save_user_prompt ( username , password , email , group ) if ( user is None ) : raise FlaskBBCLIError ( 'The user with username {} does not exist.' . format ( username ) , fg = 'red' ) click . secho ( '[+] User {} updated.' . format ( user . username ) , fg = 'cyan' )
updates an user .