@@ -49,6 +49,7 @@ class CommandLineArgUtil(object):
4949 PREVIOUS_MODEL_FILE_SWITCH = '-prev_model_file'
5050 VARIABLE_FILE_SWITCH = '-variable_file'
5151 RCU_DB_SWITCH = '-rcu_db'
52+ RCU_DB_USER_SWITCH = '-rcu_db_user'
5253 RCU_PREFIX_SWITCH = '-rcu_prefix'
5354 # phony arg used as a key to store the password
5455 RCU_SYS_PASS_SWITCH = '-rcu_sys_pass'
@@ -247,6 +248,10 @@ def process_args(self, args, tool_type=TOOL_TYPE_DEFAULT, trailing_arg_count=0):
247248 value , idx = self ._get_arg_value (args , idx )
248249 self ._validate_rcu_database_arg (value )
249250 self ._add_arg (key , value )
251+ elif self .is_rcu_dbuser_key (key ):
252+ value , idx = self ._get_arg_value (args , idx )
253+ self ._validate_rcu_dbuser_arg (value )
254+ self ._add_arg (key , value )
250255 elif self .is_rcu_prefix_key (key ):
251256 value , idx = self ._get_arg_value (args , idx )
252257 self ._validate_rcu_prefix_arg (value )
@@ -803,6 +808,21 @@ def _validate_rcu_database_arg(self, value):
803808 raise ex
804809 return
805810
811+ def get_rcu_dbuser_key (self ):
812+ return self .RCU_DB_USER_SWITCH
813+
814+ def is_rcu_dbuser_key (self , key ):
815+ return self .RCU_DB_USER_SWITCH == key
816+
817+ def _validate_rcu_dbuser_arg (self , value ):
818+ method_name = '_validate_rcu_dbuser_arg'
819+ if value is None or len (value ) == 0 :
820+ ex = exception_helper .create_cla_exception ('WLSDPLY-01622' )
821+ ex .setExitCode (self .ARG_VALIDATION_ERROR_EXIT_CODE )
822+ self ._logger .throwing (ex , class_name = self ._class_name , method_name = method_name )
823+ raise ex
824+ return
825+
806826 def get_rcu_prefix_key (self ):
807827 return self .RCU_PREFIX_SWITCH
808828
0 commit comments