Skip to content

Commit 12410d2

Browse files
committed
move around the help text
1 parent 57df1f3 commit 12410d2

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

python/private/pypi/requirements_parser/resolve_target_platforms.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,21 @@
2626

2727
from python.private.pypi.whl_installer.platform import Platform
2828

29+
INPUT_HELP = """\
30+
Input path to read the requirements as a json file, the keys in the dictionary
31+
are the requirements lines and the values are strings of target platforms.
32+
"""
33+
OUTPUT_HELP = """\
34+
Output to write the requirements as a json filepath, the keys in the dictionary
35+
are the requirements lines and the values are strings of target platforms, which
36+
got changed based on the evaluated markers.
37+
"""
38+
2939

3040
def main():
3141
parser = argparse.ArgumentParser(description=__doc__)
32-
parser.add_argument(
33-
"input_path",
34-
type=pathlib.Path,
35-
help="Input path to read the requirements as a json file, the keys in the dictionary are the requirements lines and the values are strings of target platforms.",
36-
)
37-
parser.add_argument(
38-
"output_path",
39-
type=pathlib.Path,
40-
help="Output to write the requirements as a json filepath, the keys in the dictionary are the requirements lines and the values are strings of target platforms, which got changed based on the evaluated markers.",
41-
)
42+
parser.add_argument("input_path", type=pathlib.Path, help=INPUT_HELP.strip())
43+
parser.add_argument("output_path", type=pathlib.Path, help=OUTPUT_HELP.strip())
4244
args = parser.parse_args()
4345

4446
with args.input_path.open() as f:

0 commit comments

Comments
 (0)