Skip to content

Feature request: Make help text wrap width configurable #687

@kyouheiab

Description

@kyouheiab

Feature Request

Currently, the wrap method in lib/bashly/extensions/string.rb uses a hardcoded 80-character width:

def wrap(length = 80)

This causes all help text (descriptions, examples, etc.) to be wrapped at 80 characters, which can break readability.

Example:

examples:
- mycli create item MyItem --type=SomeType --sender=SenderName --receiver=ReceiverName

Current output (wrapped at 80):

Examples:
 mycli create item MyItem --type=SomeType --sender=SenderName
 --receiver=ReceiverName

Request:
Add a wrap_width setting in settings.yml to allow users to configure the wrap width for all help text, or disable wrapping entirely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions