Mercurial > lcfOS
comparison python/st-flash.py @ 130:654093a9a1e3
Added icons, improved device explorer
author | Windel Bouwman |
---|---|
date | Sat, 19 Jan 2013 18:16:04 +0100 |
parents | 9e350a7dde98 |
children | ce6d390043a7 |
comparison
equal
deleted
inserted
replaced
129:9e350a7dde98 | 130:654093a9a1e3 |
---|---|
28 verifyparser.add_argument('address', type=hex2int) | 28 verifyparser.add_argument('address', type=hex2int) |
29 | 29 |
30 eraseparser = subparsers.add_parser('erase', help='erase flash contents') | 30 eraseparser = subparsers.add_parser('erase', help='erase flash contents') |
31 | 31 |
32 args = parser.parse_args() | 32 args = parser.parse_args() |
33 print(args) | |
34 if not args.command: | 33 if not args.command: |
35 parser.print_usage() | 34 parser.print_usage() |
36 sys.exit(1) | 35 sys.exit(1) |
37 | 36 |
38 # In any command case, open a device: | 37 # In any command case, open a device: |