Skip to content

Commit 449021c

Browse files
authored
Merge pull request #4442 from DimitriPapadopoulos/default
Use brackets for the default value of option arguments
2 parents 97e3c8f + d02b6b1 commit 449021c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

setuptools/command/bdist_wheel.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class bdist_wheel(Command):
176176
"plat-name=",
177177
"p",
178178
"platform name to embed in generated filenames "
179-
f"(default: {get_platform(None)})",
179+
f"[default: {get_platform(None)}]",
180180
),
181181
(
182182
"keep-temp",
@@ -189,7 +189,7 @@ class bdist_wheel(Command):
189189
(
190190
"relative",
191191
None,
192-
"build the archive using relative paths (default: false)",
192+
"build the archive using relative paths [default: false]",
193193
),
194194
(
195195
"owner=",
@@ -201,18 +201,18 @@ class bdist_wheel(Command):
201201
"g",
202202
"Group name used when creating a tar file [default: current group]",
203203
),
204-
("universal", None, "make a universal wheel (default: false)"),
204+
("universal", None, "make a universal wheel [default: false]"),
205205
(
206206
"compression=",
207207
None,
208-
"zipfile compression (one of: {}) (default: 'deflated')".format(
208+
"zipfile compression (one of: {}) [default: 'deflated']".format(
209209
", ".join(supported_compressions)
210210
),
211211
),
212212
(
213213
"python-tag=",
214214
None,
215-
f"Python implementation compatibility tag (default: '{python_tag()}')",
215+
f"Python implementation compatibility tag [default: '{python_tag()}']",
216216
),
217217
(
218218
"build-number=",
@@ -224,7 +224,7 @@ class bdist_wheel(Command):
224224
(
225225
"py-limited-api=",
226226
None,
227-
"Python tag (cp32|cp33|cpNN) for abi3 wheel tag (default: false)",
227+
"Python tag (cp32|cp33|cpNN) for abi3 wheel tag [default: false]",
228228
),
229229
]
230230

setuptools/command/dist_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class dist_info(Command):
2828
'output-dir=',
2929
'o',
3030
"directory inside of which the .dist-info will be"
31-
"created (default: top of the source tree)",
31+
"created [default: top of the source tree]",
3232
),
3333
('tag-date', 'd', "Add date stamp (e.g. 20050528) to version number"),
3434
('tag-build=', 'b', "Specify explicit tag to add to version number"),

setuptools/command/egg_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class egg_info(InfoCommon, Command):
172172
'egg-base=',
173173
'e',
174174
"directory containing .egg-info directories"
175-
" (default: top of the source tree)",
175+
" [default: top of the source tree]",
176176
),
177177
('tag-date', 'd', "Add date stamp (e.g. 20050528) to version number"),
178178
('tag-build=', 'b', "Specify explicit tag to add to version number"),

0 commit comments

Comments
 (0)