Skip to content

Commit a62efe1

Browse files
authored
traffic_ctl: get all host statuses by empty arg (#12352)
1 parent 8689842 commit a62efe1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/traffic_ctl/traffic_ctl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ main([[maybe_unused]] int argc, const char **argv)
131131
config_command.add_command("registry", "Show configuration file registry", [&]() { command->execute(); })
132132
.add_example_usage("traffic_ctl config registry");
133133
// host commands
134-
host_command.add_command("status", "Get one or more host statuses", "", MORE_THAN_ONE_ARG_N, [&]() { command->execute(); })
134+
host_command.add_command("status", "Get one or more host statuses", "", MORE_THAN_ZERO_ARG_N, [&]() { command->execute(); })
135135
.add_example_usage("traffic_ctl host status HOST [HOST ...]");
136136
host_command.add_command("down", "Set down one or more host(s)", "", MORE_THAN_ONE_ARG_N, [&]() { command->execute(); })
137137
.add_example_usage("traffic_ctl host down HOST [OPTIONS]")

0 commit comments

Comments
 (0)