Skip to content

Commit

Permalink
fixup! Fix #1: Drop monkey patching NCLR because it's fixed upstream.
Browse files Browse the repository at this point in the history
  • Loading branch information
wapiflapi committed Feb 28, 2019
1 parent 5ec4915 commit 18ac0b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions binexpect/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Target(object): # NOQA: N801

def __init__(self, command=None, args=[], timeout=30, maxread=2000,
searchwindowsize=None, logfile=None, cwd=None, env=None,
ignore_sighup=True, gdb=False, tty=False):
ignore_sighup=True, gdb=None, tty=None, writeback=None):
"""
Set-up the argparse.ArgumentParser for configuring binexpect.
Expand Down Expand Up @@ -145,7 +145,7 @@ def __init__(self, command=None, args=[], timeout=30, maxread=2000,
"""
)
options.add_argument(
"--writeback",
"--writeback", default=writeback,
help="""
If a TTY is opened its name and the target's arguments will be
written to this file. This is mainly for interfacing with debugers.
Expand Down Expand Up @@ -187,6 +187,7 @@ def target(self, args=None):

self._finish_setup()
self.args = self.parser.parse_args(args)
print("args: %r" % args)

if self.args.tty or self.args.gdb:
target = ttyspawn(
Expand Down

0 comments on commit 18ac0b7

Please sign in to comment.