mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
gh-90300: split --help output into separate options (GH-30331)
Make --help output shorter and add new help options.
--help-env, --help-xoptions and --help-all command-line options are
added to complement --help.
(cherry picked from commit 8aa9d40b00
)
Co-authored-by: Éric <earaujo@caravan.coop>
This commit is contained in:
parent
29c7e815bc
commit
cbfbe248e3
6 changed files with 211 additions and 81 deletions
|
@ -44,8 +44,12 @@ static const wchar_t *opt_ptr = L"";
|
|||
#define SHORT_OPTS L"bBc:dEhiIJm:OPqRsStuvVW:xX:?"
|
||||
|
||||
static const _PyOS_LongOption longopts[] = {
|
||||
/* name, has_arg, val (used in switch in initconfig.c) */
|
||||
{L"check-hash-based-pycs", 1, 0},
|
||||
{NULL, 0, 0},
|
||||
{L"help-all", 0, 1},
|
||||
{L"help-env", 0, 2},
|
||||
{L"help-xoptions", 0, 3},
|
||||
{NULL, 0, -1}, /* sentinel */
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue