Skip to content

Commit 9ca5a96

Browse files
committed
Add help messages to included commands
1 parent 67cebfd commit 9ca5a96

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Lib/platform.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,8 +1469,17 @@ def _parse_args(args: list[str] | None):
14691469

14701470
parser = argparse.ArgumentParser()
14711471
parser.add_argument("args", nargs="*", choices=["nonaliased", "terse"])
1472-
parser.add_argument("--terse", action="store_true")
1473-
parser.add_argument("--nonaliased", dest="aliased", action="store_false")
1472+
parser.add_argument(
1473+
"--terse",
1474+
action="store_true",
1475+
help="return only the absolute minimum information needed to identify the platform",
1476+
)
1477+
parser.add_argument(
1478+
"--nonaliased",
1479+
dest="aliased",
1480+
action="store_false",
1481+
help="prevent the system/ OS name from being aliased to common marketing names e.g. win32 instead of Windows"
1482+
)
14741483

14751484
return parser.parse_args(args)
14761485

0 commit comments

Comments
 (0)