Switch to argparse
I think it would be better to use argparse from standard library. I have tested it with bcf. However it currently seems to fail for beagleplay:
debian@BeaglePlay ~ [1]> python cc1352-flasher.py --play build
Setting filename to build/zephyr/zephyr.bin
Sending break
Opening port /dev/play/cc1352/uart, baud 500000
Reading data from build/zephyr/zephyr.bin
Cannot auto-detect firmware filetype: Assuming .bin
Connecting to target...
ERROR: Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'
Signed-off-by: Ayush Singh ayushsingh1325@gmail.com