The final idea is to start my python program with a command like :
python.exe -m myProgram execute --tags arg1 arg2 arg3
I'm trying to get "arg_1", "arg_2", ..., "arg_n" (with n unknown) inside a list and access all of them thanks to "tags"
I tried some ways like :
def run(self, **kwargs) -> None:
tags = []
for arg in kwargs.values():
tags = tags.append(kwargs.get("tags", None))
print(tags)
Or :
def run(self, **kwargs) -> None:
tags = kwargs.get("tags", None)
But I can't get expected result. Should I change my command or does it exist a way to get tags like a list ? Please, any help ? Thank you