Fix jsonargparse support (#403)

This commit is contained in:
allegroai
2022-03-29 11:00:33 +03:00
parent ae734c81e7
commit 95785e7637
7 changed files with 164 additions and 82 deletions

View File

@@ -0,0 +1,15 @@
from jsonargparse import CLI
from clearml import Task
class Main:
def __init__(self, prize: int = 100):
self.prize = prize
def person(self, name: str):
return "{} won {}!".format(name, self.prize)
if __name__ == "__main__":
Task.init(project_name="examples", task_name="jsonargparse command")
print(CLI(Main))