Skip to content

Provide an environment variable to disable columns wrapping #2200

@jgoux

Description

@jgoux

Hello,

I'm currently writing a little tool for generating a CLI reference documentation in markdown from a CLI built with yargs. (I recursively call the --help of all the commands/subcommands and parse the result).

The default columns wrapping with .wrap() is annoying when parsing the output of all the --help commands. I was wondering if it could be possible to add a built-in YARGS_DISABLE_WRAP that would set .wrap(null) for any yargs CLI?

It would help a ton with the kind of tool I'm building and I could apply the variable myself instead of asking the users to provide such option.

I'll be happy to make a PR if it's accepted. 👍

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