Changes the add_user function's unlimited_user parameter to default to False.

This commit is contained in:
Whispering Wind
2025-08-13 23:35:02 +03:30
committed by GitHub
parent 9afada3dc5
commit 5968903d0d
2 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ def get_user(username: str):
@click.option('--expiration-days', '-e', required=True, help='Expiration days for the new user', type=int)
@click.option('--password', '-p', required=False, help='Password for the user', type=str)
@click.option('--creation-date', '-c', required=False, help='Creation date for the user (YYYY-MM-DD)', type=str)
@click.option('--unlimited', is_flag=True, default=True, help='Exempt user from IP limit checks.')
@click.option('--unlimited', is_flag=True, default=False, help='Exempt user from IP limit checks.')
def add_user(username: str, traffic_limit: int, expiration_days: int, password: str, creation_date: str, unlimited: bool):
try:
cli_api.add_user(username, traffic_limit, expiration_days, password, creation_date, unlimited)