Skip to content

Commit 538b37a

Browse files
committed
Retain previous verbose flag behaviour
1 parent 90cc30b commit 538b37a

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

faculty_cli/cli.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,17 +505,26 @@ def server():
505505
is_flag=True,
506506
help="Show all servers, not just running ones.",
507507
)
508+
@click.option(
509+
"-v",
510+
"--verbose",
511+
is_flag=True,
512+
help="",
513+
)
508514
@click.option(
509515
"-f",
510516
"--format",
511517
type=click.Choice(["list", "table", "ssh-config"], case_sensitive=False),
512518
default="list",
513519
help="Output format.",
514520
)
515-
def list_servers(project, all, format):
521+
def list_servers(project, all, verbose, format):
516522
"""List your Faculty servers.
517523
518524
If you do not specify a project, all servers will be listed."""
525+
if verbose: # Retain legacy behaviour for verbose flag.
526+
format = "table"
527+
519528
status_filter = None if all else ServerStatus.RUNNING
520529
if not project:
521530
projects = {project.id: project.name for project in _list_projects()}

0 commit comments

Comments
 (0)