Skip to content

Commit 002e6f0

Browse files
committed
Use constant OPTIONS_TITLE
The title from argparse is now the same for all supported Python versions. Keeping the variable around because it is used in multiple places.
1 parent 5833403 commit 002e6f0

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

nextstrain/cli/argparse.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Custom helpers for extending the behaviour of argparse standard library.
33
"""
44
import os
5-
import sys
65
from argparse import Action, ArgumentDefaultsHelpFormatter, ArgumentParser, ArgumentTypeError, SUPPRESS, _SubParsersAction # pyright: ignore[reportPrivateUsage]
76
from itertools import chain, takewhile
87
from pathlib import Path
@@ -15,10 +14,7 @@
1514
from .util import format_usage, runner_module
1615

1716

18-
# The standard argument group title for non-positional arguments. See
19-
# <https://github.com/python/cpython/pull/23858> and
20-
# <https://bugs.python.org/issue9694>.
21-
OPTIONS_TITLE = "options" if sys.version_info >= (3, 10) else "optional arguments"
17+
OPTIONS_TITLE = "options"
2218

2319

2420
# Include this in an argument help string to suppress the automatic appending

0 commit comments

Comments
 (0)