sander76 / clipstick

create cli applications using pydantic models
https://sander76.github.io/clipstick/
MIT License
27 stars 3 forks source link

Use import-as named classes for command names #56

Open sander76 opened 8 months ago

sander76 commented 8 months ago

Consider this code:

from cli.Config import Load as LoadConfig

class Main(BaseModel):
    sub_command: LoadConfig | Delete  # the LoadConfig is important here.

In help output the original "load" command is used instead of "load-config"