def parse_args(): parser = ScriptArgumentsParser() parser.add_interface_args() args = parser.parse_args() cli, serial = parser.get_interface_from_args(args) return cli, serial
def parse_args(): parser = ScriptArgumentsParser() parser.add_interface_args() parser.add_argument('--prod_header', '-ph', action='store_true', help='program product header (DA1469x-00 only)') parser.add_argument('image_file', type=str, nargs='?', help='path to image') parser.add_config_args() args = parser.parse_args() cli, serial = parser.get_interface_from_args(args) return args.image_file, cli, serial, args.prod_header, args.header_config, args.flash_config
def parse_args(): parser = ScriptArgumentsParser() parser.add_interface_args() parser.add_argument('--secure_cfg', metavar='<file_path>', dest='secure_cfg_file', help='path to DA1469x-00 secure configuration file') parser.add_argument('--keys', metavar='<file_path>', dest='keys_file', help='path to DA1469x-00 keys file') args = parser.parse_args() cli, serial = parser.get_interface_from_args(args) return args.secure_cfg_file, args.keys_file, cli, serial
def parse_args(): parser = ScriptArgumentsParser() parser.add_interface_args() parser.add_argument('image_file', type=str, nargs='?', help='path to image') parser.add_argument('--secure_cfg', metavar='<file_path>', dest='secure_cfg_file', help='path to DA1469x-00 secure configuration file') parser.add_argument('--keys', metavar='<file_path>', dest='keys_file', help='path to DA1469x-00 keys file') parser.add_config_args() args = parser.parse_args() cli, serial = parser.get_interface_from_args(args) return args.image_file, args.secure_cfg_file, args.keys_file, cli, serial, args.header_config, \ args.flash_config