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 #262

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion distutils/command/bdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class bdist(Command):
'plat-name=',
'p',
"platform name to embed in generated filenames "
f"(default: {get_platform()})",
f"[default: {get_platform()}]",
),
('formats=', None, "formats for distribution (comma-separated list)"),
(
Expand Down
4 changes: 2 additions & 2 deletions distutils/command/bdist_dumb.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class bdist_dumb(Command):
'plat-name=',
'p',
"platform name to embed in generated filenames "
f"(default: {get_platform()})",
f"[default: {get_platform()}]",
),
(
'format=',
Expand All @@ -40,7 +40,7 @@ class bdist_dumb(Command):
(
'relative',
None,
"build the archive using relative paths (default: false)",
"build the archive using relative paths [default: false]",
),
(
'owner=',
Expand Down
2 changes: 1 addition & 1 deletion distutils/command/bdist_rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class bdist_rpm(Command):
'python=',
None,
"path to Python interpreter to hard-code in the .spec file "
"(default: \"python\")",
"[default: \"python\"]",
),
(
'fix-python',
Expand Down
2 changes: 1 addition & 1 deletion distutils/command/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class build(Command):
(
'plat-name=',
'p',
f"platform name to build for, if supported (default: {get_platform()})",
f"platform name to build for, if supported [default: {get_platform()}]",
),
('compiler=', 'c', "specify the compiler type"),
('parallel=', 'j', "number of parallel build jobs"),
Expand Down
2 changes: 1 addition & 1 deletion distutils/command/build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class build_ext(Command):
'plat-name=',
'p',
"platform name to cross-compile for, if supported "
f"(default: {get_platform()})",
f"[default: {get_platform()}]",
),
(
'inplace',
Expand Down
8 changes: 4 additions & 4 deletions distutils/command/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
class clean(Command):
description = "clean up temporary files from 'build' command"
user_options = [
('build-base=', 'b', "base build directory (default: 'build.build-base')"),
('build-base=', 'b', "base build directory [default: 'build.build-base']"),
(
'build-lib=',
None,
"build directory for all modules (default: 'build.build-lib')",
"build directory for all modules [default: 'build.build-lib']",
),
('build-temp=', 't', "temporary build directory (default: 'build.build-temp')"),
('build-temp=', 't', "temporary build directory [default: 'build.build-temp']"),
(
'build-scripts=',
None,
"build directory for scripts (default: 'build.build-scripts')",
"build directory for scripts [default: 'build.build-scripts']",
),
('bdist-base=', None, "temporary directory for built distributions"),
('all', 'a', "remove all build output, not just temporary by-products"),
Expand Down
2 changes: 1 addition & 1 deletion distutils/command/install_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class install_data(Command):
'install-dir=',
'd',
"base directory for installing data files "
"(default: installation base dir)",
"[default: installation base dir]",
),
('root=', None, "install everything relative to this alternate root directory"),
('force', 'f', "force installation (overwrite existing files)"),
Expand Down
Loading