git @ Cat's Eye Technologies yastasoti / 0e53060
Parse the args the function is given, don't assume sys.argv. Chris Pressey 1 year, 10 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
231231 help='Enable logging and direct the messages to the specified file'
232232 )
233233
234 options = argparser.parse_args(sys.argv[1:])
234 options = argparser.parse_args(args)
235235
236236 if options.log_to:
237237 logging.basicConfig(level=logging.INFO, filename=options.log_to)