parser = argparse.ArgumentParser(description='scp function for .pkg between two servers') parser.add_argument('--path', type=str, dest='path',default = os.path.dirname(os.path.realpath(__file__)),help='pkg path:default is current path') parser.add_argument('--file', type=str, dest='file',default = None, help='pkg filename: must be specified !')