mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-90300: split --help output into separate options (#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.
This commit is contained in:
parent
132e563703
commit
8aa9d40b00
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