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

Functional-oriented argparse groups #305

Closed
maciej-lech opened this issue Mar 29, 2020 · 2 comments · Fixed by #442
Closed

Functional-oriented argparse groups #305

maciej-lech opened this issue Mar 29, 2020 · 2 comments · Fixed by #442

Comments

@maciej-lech
Copy link
Contributor

The idea is to have functional-oriented argparse groups.

How would this feature be useful?
It will increase the readability of the help message.

Describe the solution you'd like
Instead of having primary/additinal argparse groups we can split the arguments into more functional-oriented groups e.g.:

  • general: --help, --version, --verbose, --noxfile, posargs
  • reporting: --nocolor, --forcecolor, --report
  • collection: --list, --session, --keywords
  • environment: --envdir, --reuse-existing-virtualenvs, etc.
  • execution: --stop-on-first-error, --install-only, --non-interactive, etc.

I based above on pytest --help

@theacodes
Copy link
Collaborator

I'm all for this and it would be a good first issue for someone to tackle

@DrGFreeman
Copy link
Contributor

Hello, I'd like to work on this issue if it's OK. Thx.

DrGFreeman added a commit to DrGFreeman/nox that referenced this issue Jun 10, 2021
Replace the primary/secondary argparse argument groups with functional
groups:
  - general
  - sessions
  - python
  - environment
  - execution
  - reporting
DrGFreeman added a commit to DrGFreeman/nox that referenced this issue Jun 11, 2021
Move the --non-interactive option in the execution group and shorten the
group display names.
DrGFreeman added a commit to DrGFreeman/nox that referenced this issue Jun 11, 2021
Replace the primary/secondary argparse argument groups with functional
groups:
  - general
  - sessions
  - python
  - environment
  - execution
  - reporting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants