Skip to content

Is it possible to create options with conditional parameters with help generation like in linux tail? #952

Description

@SylwesterZarebski

In linux tail option -f and --follow are distinct in that former do not allow to set any values, but latter allow to set name or descriptor values.

  -f, --follow[={name|descriptor}]
                           output appended data as the file grows;
                             an absent option argument means 'descriptor'

Is it possible to define options class to allow that with automatic help generation accordingly?
If it is not possible to generate help, is it possible to just create options to allow the distinction?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions