Update Get User

This commit is contained in:
Whispering Wind
2024-08-23 12:58:21 +03:30
committed by GitHub
parent 74ba32a0be
commit a7f1a6bf2c

View File

@ -100,12 +100,8 @@ def change_hysteria2_port(port: int):
@cli.command('get-user') @cli.command('get-user')
@click.option('--username', '-u', required=True, help='Username for the user to get', type=str) @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):
def get_user(username: str, no_traffic: bool):
cmd = ['bash', Command.GET_USER.value, '-u', str(username)] cmd = ['bash', Command.GET_USER.value, '-u', str(username)]
if no_traffic:
cmd.append('-t')
run_cmd(cmd) run_cmd(cmd)
@cli.command('add-user') @cli.command('add-user')