def _get_script_args(self, action_parameters):
        # TODO: return list for positional args, command classes should escape it
        # and convert it to string

        is_script_run_as_cmd = self.runner_parameters.get(RUNNER_COMMAND, None)

        pos_args = ''
        named_args = {}

        if is_script_run_as_cmd:
            pos_args = self.runner_parameters.get(RUNNER_COMMAND, '')
            named_args = action_parameters
        else:
            pos_args, named_args = action_utils.get_args(action_parameters, self.action)

        return pos_args, named_args
:param action_parameters: Action parameters.
dataset/ETHPy150Open StackStorm/st2/st2actions/st2actions/runners/__init__.py/ShellRunnerMixin._get_script_args