Skip to content

Multi-line help strings throw an error in click.options #4056

@m11dedhia

Description

@m11dedhia

When generating config commands for CLI using sonic-cli-gen generate config <yang_model>, fields having multi-line descriptions generate the python file while adding that description as a help string inside click.options using double quotes. This throws an error when invoking the config command for that yang model with the following error:

failed to import plugin config.plugins.auto.sonic-buffer-pool_yang: unterminated string literal (detected at line 287) (sonic-buffer-pool_yang.py, line 287)

In such a case, multi-line strings can be used to avoid this issue.

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