11"""
2- Copyright (c) 2017, 2024 , Oracle and/or its affiliates.
2+ Copyright (c) 2017, 2025 , Oracle and/or its affiliates.
33Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
44
55The entry point for the discoverDomain tool.
@@ -140,6 +140,8 @@ def __process_args(args, is_encryption_supported):
140140 if __wlst_mode == WlstModes .ONLINE :
141141 cla_helper .process_encryption_args (argument_map , is_encryption_supported )
142142
143+ __validate_skip_archive_and_remote_args (argument_map , __wlst_mode )
144+
143145 target_configuration_helper .process_target_arguments (argument_map )
144146 __process_model_arg (argument_map )
145147 __process_archive_filename_arg (argument_map )
@@ -154,6 +156,23 @@ def __process_args(args, is_encryption_supported):
154156 return model_context
155157
156158
159+ def __validate_skip_archive_and_remote_args (argument_map , wlst_mode ):
160+ _method_name = '__validate_skip_archive_and_remote_args'
161+
162+ if wlst_mode == WlstModes .OFFLINE and CommandLineArgUtil .REMOTE_SWITCH in argument_map :
163+ ex = exception_helper .create_cla_exception (ExitCode .ARG_VALIDATION_ERROR , 'WLSDPLY-06064' ,
164+ _program_name , CommandLineArgUtil .REMOTE_SWITCH )
165+ __logger .throwing (ex , class_name = _class_name , method_name = _method_name )
166+ raise ex
167+
168+ if CommandLineArgUtil .REMOTE_SWITCH in argument_map and CommandLineArgUtil .SKIP_ARCHIVE_FILE_SWITCH in argument_map :
169+ ex = exception_helper .create_cla_exception (ExitCode .ARG_VALIDATION_ERROR , 'WLSDPLY-06065' ,
170+ _program_name , CommandLineArgUtil .REMOTE_SWITCH ,
171+ CommandLineArgUtil .SKIP_ARCHIVE_FILE_SWITCH )
172+ __logger .throwing (ex , class_name = _class_name , method_name = _method_name )
173+ raise ex
174+
175+
157176def __process_model_arg (argument_map ):
158177 """
159178 Verify that specified model file's parent directory exists.
0 commit comments