- Options use a more robust int callback by default (handles hex and oct digits as well)
- over.misc.hexdump extended with initial_offset
This commit is contained in:
parent
e699be5c6d
commit
e9556c1fbe
4 changed files with 29 additions and 4 deletions
|
@ -126,6 +126,10 @@ class Option:
|
|||
else:
|
||||
self.is_boolean = is_boolean
|
||||
|
||||
# coerce a few Python types to our own
|
||||
if callback == int:
|
||||
self.callback = callback_module.integer
|
||||
|
||||
self.reset(True) # sets self.source and self._value_lists
|
||||
|
||||
def reset(self, default=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue