Skip to content

Commit

Permalink
session record/replay: mini bugfix
Browse files Browse the repository at this point in the history
Docs addendum: you can specify - as out/input file to use stdout/stdin
  • Loading branch information
ryaghoub committed Jul 18, 2017
1 parent 5fda1ed commit 83dd658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipaacatools/scripts/ipaaca-session-record
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ parser = ipaaca.IpaacaArgumentParser(description='Ipaaca IU Session Recorder --
parser.add_argument(
'-o', '--output-file',
dest='output_file',
default='default.ipaacasession',
default=['default.ipaacasession'],
metavar='OUTPUT-FILE',
nargs=1,
help="set the channels to listen on (otherwise 'default')")
Expand Down Expand Up @@ -172,7 +172,7 @@ if __name__ == '__main__':
arguments = parser.parse_args()
buffers = {}

log_file = None if (arguments.output_file[0]=='-') else open(arguments.output_file, 'w')
log_file = None if (arguments.output_file[0]=='-') else open(arguments.output_file[0], 'w')

# Create one input buffer for each channel we are listening on
for channel in arguments.channels:
Expand Down

0 comments on commit 83dd658

Please sign in to comment.