master
blallo 2019-02-05 09:07:46 +01:00 committed by blallo
parent b1f539592c
commit 5f74d80267
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
1 changed files with 8 additions and 2 deletions

View File

@ -130,13 +130,19 @@ def start_daemon_command(
@cli.command("list")
@click.option("-s", "--status", is_flag=True, default=False, help="Show also the status of each client.")
@click.option(
"-s",
"--status",
is_flag=True,
default=False,
help="Show also the status of each client.",
)
@click.pass_context
def list_command(ctx: click.Context, status: bool) -> None:
"""
Shows the clients attached
"""
logger.debug("Invoked the \"list\" command.")
logger.debug('Invoked the "list" command.')
with PLifo(ctx.obj["lifo"]) as lifo:
if len(lifo) == 0:
logger.info("No clients.")