Skip to content

Commit 482112c

Browse files
committed
chore: update argument parser
1 parent 80b7152 commit 482112c

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

src/auditwheel/main_addtag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def configure_parser(sub_parsers):
1313
"-w",
1414
"--wheel-dir",
1515
dest="WHEEL_DIR",
16-
help=("Directory to store new wheel file (default:" ' "wheelhouse/")'),
16+
help="Directory to store new wheel file (default: %(default)r)",
1717
type=abspath,
1818
default="wheelhouse/",
1919
)

src/auditwheel/main_repair.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ def configure_parser(sub_parsers):
4949
metavar="PLATFORM",
5050
env="AUDITWHEEL_PLAT",
5151
dest="PLAT",
52-
help="Desired target platform. See the available platforms under the "
53-
f'PLATFORMS section below. (default: "{highest_policy}")',
52+
help=(
53+
"Desired target platform. See the available platforms under the "
54+
"PLATFORMS section below. (default: %(default)r)"
55+
),
5456
choices=policy_names,
5557
default=highest_policy,
5658
)
@@ -59,7 +61,8 @@ def configure_parser(sub_parsers):
5961
"--lib-sdir",
6062
dest="LIB_SDIR",
6163
help=(
62-
"Subdirectory in packages to store copied libraries." ' (default: ".libs")'
64+
"Subdirectory in packages to store copied libraries. "
65+
"(default: %(default)r)"
6366
),
6467
default=".libs",
6568
)
@@ -68,7 +71,7 @@ def configure_parser(sub_parsers):
6871
"--wheel-dir",
6972
dest="WHEEL_DIR",
7073
type=abspath,
71-
help=("Directory to store delocated wheels (default:" ' "wheelhouse/")'),
74+
help="Directory to store delocated wheels (default: %(default)r)",
7275
default="wheelhouse/",
7376
)
7477
p.add_argument(
@@ -79,7 +82,7 @@ def configure_parser(sub_parsers):
7982
"Do not update the wheel filename tags and WHEEL info"
8083
" to match the repaired platform tag."
8184
),
82-
default=True,
85+
default=True, # default: UPDATE_TAGS=True
8386
)
8487
p.add_argument(
8588
"--strip",
@@ -101,10 +104,11 @@ def configure_parser(sub_parsers):
101104
action="store_false",
102105
help=(
103106
"Do not copy libraries located in the site-packages directory from "
104-
"other packages (update rpath only). The developer will need to ensure "
105-
"that the skipped libraries are listed the package install dependencies."
107+
"other packages. Just update the `rpath` only. The developer will "
108+
"need to ensure that the skipped libraries are listed the package "
109+
"install dependencies."
106110
),
107-
default=True,
111+
default=True, # default: COPY_SITE_LIBS=True
108112
)
109113
p.set_defaults(func=execute)
110114

0 commit comments

Comments
 (0)