Skip to content

Upgrade optparse-applicative to use prettyprinter and add support for structured CLI help output #3625

Description

@newhoggy

Internal if an IOHK staff member.

Area
CLI Help

Description
We need a version of optparse-applicative that is able to print structured CLI output that makes large CLI help documents easier to read.

At the moment, optparse-applicative is dependent on ansi-wl-pprint which is deprecated, and is fairly unwieldy providing very limited control over the output. Previous attempts at making ansi-wl-print properly layout structured CLI output have failed.

In order to get this working, we need to switch optparse-applicative to use prettyprinter, and then make modifications to the optparse-applicative code to perform the desired layout.

We have this in a fork, but to be sustainable, this needs to merge upstream.

Some effort to that end has been done here, but some effort needs to be spent to push this forward:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions