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

Use brackets for the default value of option arguments #4442

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

DimitriPapadopoulos
Copy link
Contributor

Summary of changes

The goal is to standardize the format of the help text printed by commands. It is not easy to choose between brackets [] and parentheses (). I went for the docopt style, which is the closest to a standard I could find:

[...] and whether that argument has a default value ([default: 10]).

This change has already been applied to distutils (pypa/distutils#262).

Closes #4421

Pull Request Checklist

The goal is to standardize the format of the help text printed
by commands. It is not easy to choose between brackets `[]` and
parentheses `()`. I went for the docopt style, which is the
closest to a standard I could find:
	http://docopt.org/

	[...] and whether that argument has a default value ([default: 10]).

This change has already been applied to distutils:
	pypa/distutils#262
@jaraco jaraco merged commit 449021c into pypa:main Jul 1, 2024
22 checks passed
@DimitriPapadopoulos DimitriPapadopoulos deleted the default branch July 2, 2024 07:04
DimitriPapadopoulos added a commit to DimitriPapadopoulos/twine that referenced this pull request Sep 21, 2024
The goal is to standardize the format of the help text printed
by pypa commands. It is not easy to choose between brackets `[]`
and parentheses `()`. I went for the docopt style, which is the
closest to a standard I could find:
	http://docopt.org/

	[...] and whether that argument has a default value ([default: 10]).

This change has already been applied to setuptools:
	pypa/setuptools#4442
DimitriPapadopoulos added a commit to DimitriPapadopoulos/twine that referenced this pull request Oct 31, 2024
The goal is to standardize the format of the help text printed
by pypa commands. It is not easy to choose between brackets `[]`
and parentheses `()`. I went for the docopt style, which is the
closest to a standard I could find:
	http://docopt.org/

	[...] and whether that argument has a default value ([default: 10]).

This change has already been applied to setuptools:
	pypa/setuptools#4442
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] [default: ] vs. (default: )
2 participants