Update Get User
This commit is contained in:
@ -100,12 +100,8 @@ def change_hysteria2_port(port: int):
|
||||
|
||||
@cli.command('get-user')
|
||||
@click.option('--username', '-u', required=True, help='Username for the user to get', type=str)
|
||||
@click.option('--no-traffic', '-t', is_flag=True, help='Do not display traffic information')
|
||||
def get_user(username: str, no_traffic: bool):
|
||||
def get_user(username: str):
|
||||
cmd = ['bash', Command.GET_USER.value, '-u', str(username)]
|
||||
if no_traffic:
|
||||
cmd.append('-t')
|
||||
|
||||
run_cmd(cmd)
|
||||
|
||||
@cli.command('add-user')
|
||||
|
||||
Reference in New Issue
Block a user