@@ -139,6 +139,8 @@ class CliConfig:
139139 reach_continue_on_install_errors : bool = False
140140 reach_continue_on_missing_lock_files : bool = False
141141 reach_continue_on_no_source_files : bool = False
142+ reach_debug : bool = False
143+ reach_disable_external_tool_checks : bool = False
142144 max_purl_batch_size : int = 5000
143145 enable_commit_status : bool = False
144146 legal : bool = False
@@ -267,6 +269,8 @@ def from_args(cls, args_list: Optional[List[str]] = None) -> 'CliConfig':
267269 'reach_continue_on_install_errors' : args .reach_continue_on_install_errors ,
268270 'reach_continue_on_missing_lock_files' : args .reach_continue_on_missing_lock_files ,
269271 'reach_continue_on_no_source_files' : args .reach_continue_on_no_source_files ,
272+ 'reach_debug' : args .reach_debug ,
273+ 'reach_disable_external_tool_checks' : args .reach_disable_external_tool_checks ,
270274 'max_purl_batch_size' : args .max_purl_batch_size ,
271275 'enable_commit_status' : args .enable_commit_status ,
272276 'legal' : args .legal or args .legal_format == "fossa" ,
@@ -878,18 +882,32 @@ def create_argument_parser() -> argparse.ArgumentParser:
878882 help = "Specific version of @coana-tech/cli to use (e.g., '1.2.3')"
879883 )
880884 reachability_group .add_argument (
881- "--reach-timeout" ,
885+ "--reach-analysis- timeout" ,
882886 dest = "reach_analysis_timeout" ,
883887 type = int ,
884888 metavar = "<seconds>" ,
885889 help = "Timeout for reachability analysis in seconds"
886890 )
891+ # Backwards-compatible alias for the pre-alignment name. Kept working, hidden from help.
887892 reachability_group .add_argument (
888- "--reach-memory-limit" ,
893+ "--reach-timeout" ,
894+ dest = "reach_analysis_timeout" ,
895+ type = int ,
896+ help = argparse .SUPPRESS
897+ )
898+ reachability_group .add_argument (
899+ "--reach-analysis-memory-limit" ,
889900 dest = "reach_analysis_memory_limit" ,
890901 type = int ,
891902 metavar = "<mb>" ,
892- help = "Memory limit for reachability analysis in MB"
903+ help = "Memory limit for reachability analysis in MB (defaults to the coana CLI's own default, currently 8192)"
904+ )
905+ # Backwards-compatible alias for the pre-alignment name. Kept working, hidden from help.
906+ reachability_group .add_argument (
907+ "--reach-memory-limit" ,
908+ dest = "reach_analysis_memory_limit" ,
909+ type = int ,
910+ help = argparse .SUPPRESS
893911 )
894912 reachability_group .add_argument (
895913 "--reach-ecosystems" ,
@@ -957,7 +975,7 @@ def create_argument_parser() -> argparse.ArgumentParser:
957975 dest = "reach_concurrency" ,
958976 type = int ,
959977 metavar = "<number>" ,
960- help = "Concurrency level for reachability analysis (must be >= 1)"
978+ help = "Concurrency level for reachability analysis (must be >= 1; defaults to the coana CLI's own default, currently 1 )"
961979 )
962980 reachability_group .add_argument (
963981 "--reach-additional-params" ,
@@ -1002,6 +1020,20 @@ def create_argument_parser() -> argparse.ArgumentParser:
10021020 action = "store_true" ,
10031021 help = argparse .SUPPRESS
10041022 )
1023+ reachability_group .add_argument (
1024+ "--reach-debug" ,
1025+ dest = "reach_debug" ,
1026+ action = "store_true" ,
1027+ help = "Enable debug output for the reachability analysis (passes --debug to the coana CLI). "
1028+ "Independent of the global --enable-debug flag."
1029+ )
1030+ reachability_group .add_argument (
1031+ "--reach-disable-external-tool-checks" ,
1032+ dest = "reach_disable_external_tool_checks" ,
1033+ action = "store_true" ,
1034+ help = "Disable coana's external tool availability checks during reachability analysis "
1035+ "(passes --disable-external-tool-checks to the coana CLI)."
1036+ )
10051037
10061038 parser .add_argument (
10071039 '--version' ,
0 commit comments