Skip to content

usageLineLength not respected when separator are printed #71

Closed

Description

@neophob

Howto reproduce this issue:

  final ArgParser argParser = ArgParser(usageLineLength: 12)
    ..addSeparator('this is a very long line that should break but does not, thus i create this report on github!')
    ..addOption('option',
        abbr: 'o', help: 'This is a very important option! Use me all the time', mandatory: true)

the output looks like this:

this is a very long line that should break but does not, thus i create this report on github!
-o, --option (mandatory)    This is a
                            very
                            important
                            option!
                            Use me all
                            the time

I think if the output width is defined, then also the separator should respect that

Activity

  1. added
    type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)
    contributions-welcomeContributions welcome to help resolve this (the resolution is expected to be clear from the issue)
    on Nov 10, 2022
  2. transferred this issue fromdart-archive/argson Oct 14, 2024
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

    contributions-welcomeContributions welcome to help resolve this (the resolution is expected to be clear from the issue)package:argstype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions