Saveinputs
From CASA Guides
Help on function saveinputs in module __main__:
saveinputs(taskname=None, outfile=, myparams=None, ipython_globals=None)
Save current input values to file on disk for a specified task: taskname -- Name of task default: <unset>; example: taskname='bandpass' <Options: type tasklist() for the complete list> outfile -- Output file for the task inputs default: taskname.saved; example: outfile=taskname.orion