Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add separator between args in help message #4

Open
vanyakosmos opened this issue Oct 21, 2019 · 0 comments
Open

add separator between args in help message #4

vanyakosmos opened this issue Oct 21, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@vanyakosmos
Copy link
Owner

vanyakosmos commented Oct 21, 2019

maybe via Meta class with parameters (django-style)

class Args:
  a: int
  b = 'foo'
  c = 'bar'

  class Meta:
    groups = [
      ['a', 'b'], ['c'],
    ]
    # or
    order = 1  # or -1, or list of names
    separator = ['c']  # place separator above `c` arg

or as list in parse_args:

parse_args([Args, AnotherArgs, ...])

or pytest style: anonymous OptionGroup + list of groups

@vanyakosmos vanyakosmos added the enhancement New feature or request label Oct 22, 2019
@vanyakosmos vanyakosmos changed the title allow to add separator between args in help and print full help message (with sub commands) add separator between args in help and print full help message (with sub commands) Oct 29, 2019
@vanyakosmos vanyakosmos changed the title add separator between args in help and print full help message (with sub commands) add separator between args in help message Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant