44# ------------------------------------------------------------------------------
55# The MIT License (MIT)
66#
7- # Copyright (c) 2024 Aarno Labs, LLC
7+ # Copyright (c) 2024-2025 Aarno Labs, LLC
88#
99# Permission is hereby granted, free of charge, to any person obtaining a copy
1010# of this software and associated documentation files (the "Software"), to deal
@@ -170,6 +170,7 @@ def cproject_analyze_project(args: argparse.Namespace) -> NoReturn:
170170 loglevel : str = args .loglevel
171171 logfilename : Optional [str ] = args .logfilename
172172 logfilemode : str = args .logfilemode
173+ excludefiles : List [str ] = args .exclude
173174
174175 if not os .path .isdir (tgtpath ):
175176 print_error (f"Target directory { tgtpath } not found" )
@@ -193,7 +194,7 @@ def cproject_analyze_project(args: argparse.Namespace) -> NoReturn:
193194 exit (1 )
194195
195196 capp = CApplication (
196- projectpath , projectname , targetpath , contractpath )
197+ projectpath , projectname , targetpath , contractpath , excludefiles = excludefiles )
197198
198199 def save_xrefs (f : "CFile" ) -> None :
199200 capp .indexmanager .save_xrefs (
@@ -206,7 +207,7 @@ def save_xrefs(f: "CFile") -> None:
206207 linker .save_global_compinfos ()
207208
208209 capp = CApplication (
209- projectpath , projectname , targetpath , contractpath )
210+ projectpath , projectname , targetpath , contractpath , excludefiles = excludefiles )
210211
211212 am = AnalysisManager (capp , verbose = True )
212213
0 commit comments