182 # the command/shell/script modules used to support the `cmd` arg,
183 # which corresponds to what we now call _raw_params, so move that
184 # value over to _raw_params (assuming it is empty)
185 if action in ('command', 'shell', 'script'):
186 if 'cmd' in args:
187 if args.get('_raw_params', '') != '':
188 raise AnsibleError("The 'cmd' argument cannot be used when other raw parameters are specified."
189 " Please put everything in one or the other place.", obj=ds)
190 args['_raw_params'] = args.pop('cmd')