This commit is contained in:
Akram Ben Aissi 2025-07-24 21:06:24 +02:00 committed by GitHub
commit 3aefbb197e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 1448 additions and 1 deletions

View file

@ -28,10 +28,11 @@ class StackListProviders(Subcommand):
return [api.value for api in providable_apis()]
def _add_arguments(self):
choices = self.providable_apis
self.parser.add_argument(
"api",
type=str,
choices=self.providable_apis,
choices=choices if choices else None,
nargs="?",
help="API to list providers for. List all if not specified.",
)