Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
41f29ccd
Commit
41f29ccd
authored
May 23, 2019
by
Dan
Committed by
Wenzel Jakob
Jun 11, 2019
Browse files
Parse command-line args in a separate function.
parent
e0b8bbbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
tools/mkdoc.py
tools/mkdoc.py
+6
-1
No files found.
tools/mkdoc.py
View file @
41f29ccd
...
...
@@ -232,7 +232,7 @@ class ExtractionThread(Thread):
job_semaphore
.
release
()
def
extract_all
(
args
):
def
read_args
(
args
):
parameters
=
[]
filenames
=
[]
if
"-x"
not
in
args
:
...
...
@@ -277,6 +277,11 @@ def extract_all(args):
if
len
(
filenames
)
==
0
:
raise
NoFilenamesError
(
"args parameter did not contain any filenames"
)
return
parameters
,
filenames
def
extract_all
(
args
):
parameters
,
filenames
=
read_args
(
args
)
output
=
[]
for
filename
in
filenames
:
thr
=
ExtractionThread
(
filename
,
parameters
,
output
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment