Mercurial > lcfOS
diff python/hexutil.py @ 331:a78b41ff6ad2
Added better recipe files
author | Windel Bouwman |
---|---|
date | Fri, 07 Feb 2014 12:39:59 +0100 |
parents | 917eab04b8b7 |
children |
line wrap: on
line diff
--- a/python/hexutil.py Fri Feb 07 12:08:40 2014 +0100 +++ b/python/hexutil.py Fri Feb 07 12:39:59 2014 +0100 @@ -12,7 +12,7 @@ parser = argparse.ArgumentParser( description='hexfile manipulation tool by Windel Bouwman') -subparsers = parser.add_subparsers(title='commands', +subparsers = parser.add_subparsers(title='commands', description='possible commands', dest='command') p = subparsers.add_parser('info', help='dump info about hexfile') @@ -31,10 +31,10 @@ def main(args): if args.command == 'info': - hf = HexFile() - hf.load(args.hexfile) - print(hf) - for region in hf.regions: + hexfile = HexFile() + hexfile.load(args.hexfile) + print(hexfile) + for region in hexfile.regions: print(region) elif args.command == 'new': hf = HexFile()