Skip to content

Commit a01ae10

Browse files
committed
Changing the flag name --python-path to --use-python-path.
1 parent c4d4b57 commit a01ae10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/mypy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def process_options(args: List[str]) -> Tuple[str, str, Options]:
114114
options.html_report_dir = args[1]
115115
options.build_flags.append('html-report')
116116
args = args[2:]
117-
elif args[0] == '--python-path':
117+
elif args[0] == '--use-python-path':
118118
options.python_path = True
119119
args = args[1:]
120120
else:
@@ -131,7 +131,7 @@ def process_options(args: List[str]) -> Tuple[str, str, Options]:
131131

132132
if options.python_path and options.pyversion == 2:
133133
usage('--py2 specified, '
134-
'but --python_path will search in sys.path of Python 3')
134+
'but --use-python-path will search in sys.path of Python 3')
135135

136136
return args[0], None, options
137137

@@ -152,7 +152,7 @@ Optional arguments:
152152
--html-report dir generate a HTML report of type precision under dir/
153153
-m mod type check module
154154
--verbose more verbose messages
155-
--python_path search for modules in sys.path of running Python
155+
--use-python-path search for modules in sys.path of running Python
156156
157157
Environment variables:
158158
MYPYPATH additional module search path

0 commit comments

Comments
 (0)