Skip to content

Use import-as named classes for command names #56

@sander76

Description

@sander76

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions