Lines Matching full:args
103 def action_write(args): argument
104 with UF2Writer(args['chip_id'], args['output_file'], args['chunk_size']) as writer:
105 for addr, f in args['files']:
108 print('"{}" has been written.'.format(args['output_file']))
155 args = parser.parse_args()
169 if args.files:
170 …= [(parse_addr(addr), check_file(f_name)) for addr, f_name in zip(args.files[::2], args.files[1::2…
172 if args.json:
173 json_dir = os.path.dirname(os.path.abspath(args.json))
182 with open(args.json) as f:
185 if args.bin:
187 bin_selection = [json_content[b] for b in args.bin]
202 cmd_args = {'output_file': args.output_file,
204 'chip_id': args.chip_id,
205 'chunk_size': args.chunk_size,
209 }[args.command](cmd_args)