original_docstring: Select the right argument for tsunami CLI based on the target type.
  
          Args:
              target: Target.
  
          Returns:
              - argument for tsunami CLi target.
  
          Raises:
              - ValueError: the provided  ip version is incorrect.
          
docstring: Select the right argument for tsunami CLI based on the target type.
docstring_tokens: Select the right argument for tsunami CLI based on the target type .
code: def _get_target_arg(self, target: Target):
          """Select the right argument for tsunami CLI based on the target type.
  
          Args:
              target: Target.
  
          Returns:
              - argument for tsunami CLi target.
  
          Raises:
              - ValueError: the provided  ip version is incorrect.
          """
          if target.address is not None:
              if target.version == 'v4':
                  return f'--ip-v4-target={target.address}'
              elif target.version == 'v6':
                  return f'--ip-v4-target={target.address}'
              else:
                  raise ValueError(f'Incorrect ip version {target.version}.')
          elif target.domain is not None:
              return f'--hostname-target={target.domain}'
          else:
              raise ValueError('Could not find any target.')
code_tokens: def _get_target_arg ( self , target : Target ) : if target . address is not None : if target . version == 'v4' : return f'--ip-v4-target={target.address}' elif target . version == 'v6' : return f'--ip-v4-target={target.address}' else : raise ValueError ( f'Incorrect ip version {target.version}.' ) elif target . domain is not None : return f'--hostname-target={target.domain}' else : raise ValueError ( 'Could not find any target.' )
short_docstring: Select the right argument for tsunami CLI based on the target type.
short_docstring_tokens: Select the right argument for tsunami CLI based on the target type .
comment: """Select the right argument for tsunami CLI based on the target type.
  
          Args:
              target: Target.
  
          Returns:
              - argument for tsunami CLi target.
  
          Raises:
              - ValueError: the provided  ip version is incorrect.
          """