From ecb92eb8434ed727ea36bf76a750420a9528f8f7 Mon Sep 17 00:00:00 2001 From: ajax Date: Thu, 2 Oct 2014 18:01:25 +0200 Subject: Sandbox: Pass arguments to parser init --- miasm2/analysis/sandbox.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'miasm2/analysis/sandbox.py') diff --git a/miasm2/analysis/sandbox.py b/miasm2/analysis/sandbox.py index f1e19c97..598f40a0 100644 --- a/miasm2/analysis/sandbox.py +++ b/miasm2/analysis/sandbox.py @@ -53,12 +53,13 @@ class Sandbox(object): self.jitter.jit.log_newbloc = True @classmethod - def parser(cls): + def parser(cls, *args, **kwargs): """ - Return instance of instance parser with expecting options + Return instance of instance parser with expecting options. + Extra parameters are passed to parser initialisation. """ - parser = ArgumentParser() + parser = ArgumentParser(*args, **kwargs) parser.add_argument('-a', "--address", help="Force entry point address", default=None) parser.add_argument('-x', "--dumpall", action="store_true", -- cgit 1.4.1