Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ssorj committed Dec 30, 2024
1 parent 274307a commit 6890f04
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions python/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,26 +502,6 @@ def get(obj):

return property(get)

def option_name(property_name):
chars = list()
prev = None

for char in property_name:
if char.isupper():
if prev and prev.islower():
chars.append("-")

chars.append(char.lower())
else:
if prev and prev.isupper() and chars[-2] != "-":
chars.insert(-1, "-")

chars.append(char)

prev = char

return "".join(chars)

class Option(ModelObjectAttribute):
type = option_property("type")
required = option_property("required", default=False)
Expand Down

0 comments on commit 6890f04

Please sign in to comment.