#Are "debug" and "verbose" reserved keyworks that can't be used as function arg name ?

1 messages · Page 1 of 1 (latest)

buoyant tree
#

Hi, I've got problems using debug or verbose as function argument names.
With the following function signature :

async def test(self,
                   source: Annotated[Directory, DefaultPath("/"), Ignore(["**/build", ".gradle"]), Doc("Base directory")],
                   env_var_file: Annotated[File | None, Doc("File containing environment variables required by the tests")],
                   debug: Annotated[bool | None, Doc("Run tests with verbose output")],

I'm getting an error when calling

mymodule call test --source=. -- debug

Same thing if I rename the argument 'debug' to 'verbose'

Renaming the arg to something else, eg 'trace', fixes the problem.

I also noticed that calling dagger call test --help doesn't expose the 'verbose' or 'debug' field

The trace : https://v3.dagger.cloud/mikael-bc/traces/1c61a3ac14973fd0606944b39ad0e2e5

I'm using dagger 0.16.3