File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 10
10
)
11
11
12
12
13
-
14
13
def walk_dir (file_name , directory ):
15
14
for root , subdirs , files in os .walk (directory ):
16
15
if file_name in files :
@@ -96,12 +95,19 @@ def main():
96
95
args_parser .add_argument (
97
96
"-o" , "--out" , help = "where to write the files (default: out)" , default = "out"
98
97
)
98
+ args_parser .add_argument (
99
+ "-l" ,
100
+ "--library" ,
101
+ action = "append" ,
102
+ dest = "libraries" ,
103
+ help = "the libraries to split (default: [httplib])" ,
104
+ )
99
105
args = args_parser .parse_args ()
100
106
107
+ default_libraries = ["httplib" ]
101
108
search_dirs = ["example" ]
102
- lib_names = ["httplib" ]
103
109
104
- for lib_name in lib_names :
110
+ for lib_name in args . libraries or default_libraries :
105
111
split (lib_name , search_dirs , args .extension , args .out )
106
112
107
113
You can’t perform that action at this time.
0 commit comments