Skip to content

elements --help lists incorrect element types (diagram instead of admonition/plantuml) #259

@raifdmueller

Description

@raifdmueller

Bug Description

The help text for dacli elements --help lists the following element types:

--type TEXT  Element type: code, table, image, diagram, list

However, diagram is not a valid type. When used, dacli returns:

$ dacli elements --type diagram
Warning: Unknown element type 'diagram'. Valid types are: admonition, code, image, list, plantuml, table

Expected

The help text should list the actual valid types: admonition, code, image, list, plantuml, table

Actual

Help text lists: code, table, image, diagram, list

  • diagram is listed but does not exist
  • admonition and plantuml are missing from the help text

Steps to Reproduce

dacli elements --help        # shows "diagram" as valid type
dacli elements --type diagram  # warns that "diagram" is unknown
dacli elements --type admonition  # works, but not listed in help
dacli elements --type plantuml    # works, but not listed in help

Version

dacli, version 0.4.27

Impact

Low - the warning message correctly lists the valid types, so users can self-correct. But the help text should be accurate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions