I am trying to run a script from ESRI that copies items between two Portal instances. When I run the script I get this error on the python interpreter
usage: module1.py [-h]
sourcePortal sourceAdmin sourcePassword query destPortal
destAdmin destPassword owner folder
module1.py: error: too few arguments
>>>
I have put the correct credentials and parameters in the run script section
# Run the script.
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('sourcePortal',
help=('https://??????'))
parser.add_argument('sourceAdmin', help='?????')
parser.add_argument('sourcePassword', help='????')
parser.add_argument('query', help='??????')