Skip to content

Commit

Permalink
Add metavar for enum param (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade authored Jun 27, 2024
1 parent 59db55d commit 582dd27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/composio/cli/utils/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ def __init__(self, cls: t.Type[Enum]) -> None:
"""Initialize"""
self.cls = cls

def get_metavar(self, param: click.Parameter) -> str:
"""Get metavar representation."""
return t.cast(str, param.name).upper()

def convert(
self,
value: str,
Expand Down

0 comments on commit 582dd27

Please sign in to comment.