mirror of
https://github.com/elliotnunn/BlueBoxDocs.git
synced 2025-01-02 09:30:39 +00:00
Allow force-override of signatures
This commit is contained in:
parent
6ea8488a49
commit
a0b78f213c
@ -16,6 +16,7 @@ parser = argparse.ArgumentParser(description='''
|
||||
|
||||
parser.add_argument('src', action='store', help='Source file')
|
||||
parser.add_argument('-o', nargs='?', action='store', help='Listing file to update')
|
||||
parser.add_argument('-f', action='store_true', help='Force override listing file')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
@ -64,6 +65,7 @@ for i in range(len(binary) - len(MOTIF)):
|
||||
line[1] = str(nargs)
|
||||
elif line[1] != str(nargs):
|
||||
print('...WARNING: the listing file says %s' % line[1])
|
||||
if args.f: line[1] = str(nargs)
|
||||
break
|
||||
else:
|
||||
lines.append([selector, str(nargs), '???'])
|
||||
|
Loading…
Reference in New Issue
Block a user