I have the following code
from typing import Annotated
import dagger
from enum import Enum
@dagger.enum_type
class TestEnum(str, Enum):
A = "a"
B = "b"
TestArrayType = Annotated[list[TestEnum], dagger.Doc("Test array.")]
TestType = Annotated[TestEnum, dagger.Doc("Test.")]
@dagger.object_type
class Test:
"""Test class."""
@dagger.function
def test_array(self, t: TestArrayType = [TestEnum.A]) -> str:
return str(t)
@dagger.function
def test(self, t: TestType = TestEnum.A) -> str:
return str(t)
Running help is returning:
$ dagger call test-array --help
USAGE
dagger call test-array [arguments]
ARGUMENTS
--t []A,B Test array. (default [])
and:
$ dagger call test --help
USAGE
dagger call test [arguments]
ARGUMENTS
--t A,B Test.
I would expect the default value appearing in the help description.
How should I set the default value to appear it in cli help?