From 0749057bc8b417a6ef4f6f79a436c97a2194699b Mon Sep 17 00:00:00 2001 From: Ignacio Heredia Date: Tue, 14 May 2024 14:11:28 +0200 Subject: [PATCH] feat: add types to help message --- deepaas/cmd/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deepaas/cmd/cli.py b/deepaas/cmd/cli.py index bbf4ce61..12c6e0ca 100644 --- a/deepaas/cmd/cli.py +++ b/deepaas/cmd/cli.py @@ -119,12 +119,14 @@ def _fields_to_dict(fields_in): if "enum" in val.metadata.keys(): val_help += f"\nChoices: {val.metadata['enum']}" + val_help += f"\nType: {param['type'].__name__}" if val_type is fields.Field: - val_help += "\nType: FILEPATH" + val_help += " (filepath)" if val_req: val_help += "\n*Required*" + val_help = val_help.lstrip('\n') # remove escape when no description found param["help"] = val_help dict_out[key] = param